Wikibooks:Requests for import/Archives/2018/September

Import from Wikisource for annotation
I have just transcluded Economic Sophisms and would like to now create a copy for annotation. Are there any examples of similar projects? Any guidelines? All and any advice gratefully received, Cheers from Wikisource, Zoeannl (discuss • contribs) 08:29, 3 September 2018 (UTC)


 * , see Subject:Literature for annotation examples. Guidelines are listed here. I'll import the Wikisource text soon. Leaderboard (discuss • contribs) 08:49, 3 September 2018 (UTC)
 * X mark.svg   Doesn't seem to work. I tried importing from my end, but the output didn't contain the source text itself and was messed up., can you help? Don't think we've ever imported a Wikisource text before. Leaderboard (discuss • contribs) 09:07, 3 September 2018 (UTC)


 * Sorry, I really struggle with wiki-ing; I'm a proofreader primarily. Perhaps can help? --Zoeannl (discuss • contribs) 10:13, 3 September 2018 (UTC)


 * Two questions: Should the pages be imported directly to Economic Sophisms?  And, do you want all the subpages?  I take it there was no difficulty importing the main page, Economic Sophisms, to our page Transwiki:Economic Sophisms; but each subpage has to be imported individually. --Pi zero (discuss • contribs)


 * I don't think you can even import the subpages. I tried to do one of them before, and got an error instead saying that some extension was missing. Leaderboard (discuss • contribs) 11:28, 3 September 2018 (UTC)
 * Leaderboard (discuss • contribs) 11:32, 3 September 2018 (UTC)


 * Aha! Now I see the problem.  It isn't a problem with importing Economic Sophisms, nor its subpages such as Economic Sophisms/Introduction, but with the page-space content such as s:Page:Economic Sophisms.djvu/13.  Which can be chalked up (being blunt) to the, er, poor design decision of the Foundation to proliferate special formats instead of expressing everything using ordinary wiki pages.  (I am, of course, being "polite"; my unvarnished opinion of that design decision would use stronger language.) I see only three options.
 * install the corresponding extension on Wikibooks; seems an extreme measure, probably unwise.
 * convince Wikisource to switch to using ordinary wiki pages for everything; seems an insane fantasy, since for the near future at least it'd require a severe downgrade in interface quality.
 * make do without.
 * --Pi zero (discuss • contribs) 11:51, 3 September 2018 (UTC)


 * I think another option is to have the user copy the content by hand, and then perform a history-merge to the copied content (as then the problem of the 'extension' will no longer be there). Would be a bit cumbersome though. Leaderboard (discuss • contribs) 12:03, 3 September 2018 (UTC)


 * There's no history to merge, since the original page can't be imported. --Pi zero (discuss • contribs) 12:12, 3 September 2018 (UTC)
 * As we are transcluding pages from the enWS Page: ns and they are book model, eg. and they result in wikitext .  I am guessing that if we are wanting to import them as text, we would almost need to convert them to different templates and then substituting a string of those components ... . It isn't overly complex though would take some fiddling. Billinghurst (discuss • contribs) 12:47, 3 September 2018 (UTC)
 * The reason why the original page cannot be imported is because of the content. If the import target is pointed straight to the Wikibooks page, won't only the history import?
 * Can you do this using the importupload permission (potentially bypassing the import errors)? Leaderboard (discuss • contribs) 12:49, 3 September 2018 (UTC)
 * I can try importing it all, and we'll see what it looks like when it arrives... QuiteUnusual (discuss • contribs) 14:06, 3 September 2018 (UTC)
 * So basically nothing, same as a Transwiki import. To be clear, the issue is it doesn't EXPORT not that it won't IMPORT - the XML from an export is essentially empty. QuiteUnusual (discuss • contribs) 14:10, 3 September 2018 (UTC)
 * Okay, I've got most of the text across by forcing the content-model change to wikitext on the import (e.g., Transwiki:Economic Sophisms.djvu/19). I will move the pages that actually have some content shortly. QuiteUnusual (discuss • contribs) 14:31, 3 September 2018 (UTC)


 * Well that was fun. It's mainly done (e.g., see Economic Sophisms/Chapter 11 which has all the links) and is still in Wikisource style as I assume that will help a bit. It probably needs some restructuring to work with WB properly. I do like the module, imported now from S. QuiteUnusual (discuss • contribs) 17:58, 3 September 2018 (UTC)


 * Looks good but what have you done? :) It looks like you've made each WSpage a WBchapter and then transcluded the BookChapter from the respective WSpages=WBchapters. You have imported the first 40 pages and then overwritten the first 10 to make the Book chapters? I can finish the transclusion, if you could move all the pages to chapters? If the first 22 chapters are the final BookChapters, would you move the (237) pages to Chapters 23 to 260? Or we could end up with the chapter titles e.g. Chapter 1 as Economic Sophisms/Abundance, Scarcity and the pages as chapters 1-238... Thanks! --Zoeannl (discuss • contribs) 05:28, 4 September 2018 (UTC)
 * What I have done is replicate the WS structure where what you see as "chapters" just transclude other pages. That's because content is stored in WS per page of the original book not by chapter of that book. In other words, what you call Chapter 1 is a number of separate pages (and hence imports). I blocked them together in the same way and chose to call them "chapters", but you should ignore that - the 40 "chapters" listed here are just 40 separate blocks of content from WS and, in the case of 1 - 6 I've transcluded them to create "real" chapters. There isn't a one to one link between pages and chapters (and in many cases they overlap). I don't think there's a way of automating the import to create what you want - you'll have to work with the content that's come across and move it around in the way you want it either by transcluding or copy / pasting. If there are 237 additional pages to import, it's very unlikely that's going to happen soon because each one requires manual intervention to bring across. I will experiment but it'll take deeper thought QuiteUnusual (discuss • contribs) 10:48, 4 September 2018 (UTC)


 * I have reimported all the content. You will find it linked from the main page as a series of subpages number 1 to 254 (e.g., Economic Sophisms/17). As I noted above, some are empty because on WS all they contain is a blank page of the source text. You'll have to work out how to add the kind of structure you want for the annotated text and then move the content in. E.g., do you want to transclude parts 1 - 17 into a page called Chapter 1? Or copy the text in? If there are any pages you don't want, please add to each one and someone will remove them. If you end up needing to do a bulk move of pages, ask an admin as they can do move all the subpages together. QuiteUnusual (discuss • contribs) 15:35, 4 September 2018 (UTC)