From b4a7e4742e78872e73a00674bccdd5911c309e16 Mon Sep 17 00:00:00 2001 From: gnosygnu Date: Wed, 1 Feb 2017 16:53:37 -0500 Subject: [PATCH] custom_wikis --- home/wiki/App/Databases/Overview.html | 2 +- .../App/Import/Download/Dump_servers.html | 2 +- home/wiki/App/Import/English_Wikipedia.html | 2 +- home/wiki/App/Import/Offline.html | 4 +- home/wiki/App/Import/Shrinking.html | 2 +- home/wiki/App/Search.html | 6 +- home/wiki/App/Search/Address_bar.html | 4 +- home/wiki/App/Setup/System_requirements.html | 2 +- home/wiki/App/Setup/Update/In-app.html | 6 +- home/wiki/App/Setup/Update/Manual.html | 2 +- home/wiki/App/Setup/Upgrading.html | 2 +- home/wiki/App/UI/Address_bar/URLs.html | 2 +- home/wiki/App/UI/Keybindings.html | 2 +- home/wiki/App/UI/Menus.html | 2 +- home/wiki/App/UI/Printing.html | 2 +- home/wiki/App/Wiki_types/Wikia.com.html | 211 ++++- home/wiki/App/Xtn/Import/Dansguardian.html | 4 +- .../App/Xtn/Mediawiki/Math/Latex/Linux.html | 4 +- .../App/Xtn/Mediawiki/Math/Latex/Windows.html | 4 +- home/wiki/App/Xtn/Mediawiki/Math/Setup.html | 2 +- home/wiki/App/Xtn/Mediawiki/Score.html | 4 +- home/wiki/App/Xtn/Mediawiki/Scribunto.html | 2 +- home/wiki/App/Xtn/Page_sync.html | 2 +- home/wiki/Archive/Import/Sqlite.html | 2 +- home/wiki/Blog.html | 10 +- home/wiki/Blog/2015.html | 18 +- home/wiki/Blog/2016-01.html | 10 +- home/wiki/Blog/2016-02.html | 10 +- home/wiki/Blog/2016-03.html | 8 +- home/wiki/Blog/2016-04.html | 8 +- home/wiki/Blog/2016-05.html | 8 +- home/wiki/Blog/2016-06.html | 12 +- home/wiki/Blog/2016-07.html | 8 +- home/wiki/Blog/2016-08.html | 8 +- home/wiki/Blog/2016-09.html | 8 +- home/wiki/Blog/2016-10.html | 8 +- home/wiki/Blog/2016-11.html | 8 +- home/wiki/Blog/2016-12.html | 8 +- home/wiki/Blog/2017-01.html | 10 +- home/wiki/Change_log.html | 12 +- home/wiki/Change_log/2013.html | 52 +- home/wiki/Change_log/2014.html | 118 +-- home/wiki/Change_log/2015.html | 36 +- home/wiki/Change_log/2016.html | 12 +- home/wiki/Change_log/v3.10.3.1.html | 4 +- home/wiki/Change_log/v3.11.2.1.html | 6 +- home/wiki/Change_log/v3.6.3.1.html | 4 +- home/wiki/Change_log/v3.7.4.1.html | 2 +- home/wiki/Change_log/v3.8.5.1.html | 4 +- home/wiki/Change_log/v3.9.2.1.html | 2 +- home/wiki/Dashboard/Image_databases.html | 2 +- home/wiki/Dashboard/Import/Offline.html | 4 +- home/wiki/Dashboard/Import/Online.html | 2 +- home/wiki/Dashboard/Wiki_maintenance.html | 757 +----------------- home/wiki/Dev/Design/Data_dump_format.html | 2 +- home/wiki/Dev/Design/Database.html | 2 +- home/wiki/Dev/File/Setup/Index.html | 2 +- home/wiki/Dev/File/Setup/Mac_OS_X.html | 2 +- home/wiki/Dev/File/Setup/Windows.html | 6 +- home/wiki/Diagnostics.html | 12 +- home/wiki/Diagnostics/HTML_Tidy.html | 2 +- home/wiki/Diagnostics/Scribunto/All.html | 256 +++--- .../Scribunto/ParserFunctions.html | 2 +- .../Diagnostics/Scribunto/TitleBlacklist.html | 2 +- home/wiki/Help/About.html | 2 +- home/wiki/Help/Contents.html | 28 +- home/wiki/Help/FAQs.html | 2 +- home/wiki/Help/Features/Search/Build.html | 2 +- home/wiki/Help/Overview.html | 6 +- home/wiki/Help/Privacy/Desktop.html | 14 +- home/wiki/Help/Security.html | 2 +- home/wiki/Main_Page.html | 16 +- home/wiki/Options.html | 196 ++++- home/wiki/Options/Bookmarks.html | 2 +- home/wiki/Options/Dev.html | 12 +- home/wiki/Options/Files.html | 12 +- home/wiki/Options/Firefox_addon.html | 2 +- home/wiki/Options/HTML_databases.html | 4 +- home/wiki/Options/Security.html | 4 +- home/wiki/Options/Shortcuts.html | 18 +- home/wiki/Options/XOWA_viewer.html | 2 +- home/wiki/Wiki_setup/Afrikaans_wikis.html | 2 +- home/wiki/Wiki_setup/Arabic_wikis.html | 2 +- home/wiki/Wiki_setup/Czech_wikis.html | 2 +- home/wiki/Wiki_setup/Dutch_wikis.html | 2 +- home/wiki/Wiki_setup/English_wikis.html | 2 +- home/wiki/Wiki_setup/French_wikis.html | 2 +- home/wiki/Wiki_setup/German_wikis.html | 2 +- home/wiki/Wiki_setup/Haitian_wikis.html | 2 +- home/wiki/Wiki_setup/Italian_wikis.html | 2 +- home/wiki/Wiki_setup/Polish_wikis.html | 2 +- home/wiki/Wiki_setup/Russian_wikis.html | 2 +- home/wiki/Wiki_setup/Simple_wikis.html | 2 +- home/wiki/Wiki_setup/Spanish_wikis.html | 2 +- home/wiki/Wiki_setup/Swahili_wikis.html | 2 +- home/wiki/Wiki_setup/Swedish_wikis.html | 2 +- 96 files changed, 817 insertions(+), 1261 deletions(-) diff --git a/home/wiki/App/Databases/Overview.html b/home/wiki/App/Databases/Overview.html index 4fe7abd3d..011fff730 100644 --- a/home/wiki/App/Databases/Overview.html +++ b/home/wiki/App/Databases/Overview.html @@ -93,7 +93,7 @@ Wikitext databases will have -text- in the file name. For example, en.wikipedia.org-text-ns.000.xowa
  • - Users can generates this Wikitext set by using either Dashboard/Import/Online or Dashboard/Import/Offline + Users can generates this Wikitext set by using either Dashboard/Import/Online or Dashboard/Import/Offline
  • Wikitext databases have been supported since the very start of XOWA. As such, they have a full set of functionality diff --git a/home/wiki/App/Import/Download/Dump_servers.html b/home/wiki/App/Import/Download/Dump_servers.html index 35182ecff..79ea3340e 100644 --- a/home/wiki/App/Import/Download/Dump_servers.html +++ b/home/wiki/App/Import/Download/Dump_servers.html @@ -47,7 +47,7 @@ Changing the dump server

    - Please see Options/Import + Please see Options/Import

    diff --git a/home/wiki/App/Import/English_Wikipedia.html b/home/wiki/App/Import/English_Wikipedia.html index b8a65cab1..67681f95d 100644 --- a/home/wiki/App/Import/English_Wikipedia.html +++ b/home/wiki/App/Import/English_Wikipedia.html @@ -102,7 +102,7 @@

    - Import through Dashboard/Import/Online + Import through Dashboard/Import/Online

    - These menus can also be customized using the source at Options/Menus + These menus can also be customized using the source at Options/Menus

    Note that internationalization (translation by language) is only supported for German. Other languages can be supported, but translations are needed! See Help/Feedback. diff --git a/home/wiki/App/UI/Printing.html b/home/wiki/App/UI/Printing.html index 752d630e2..1621e779b 100644 --- a/home/wiki/App/UI/Printing.html +++ b/home/wiki/App/UI/Printing.html @@ -94,7 +94,7 @@ Restart XOWA

  • - Go to Options/Menus + Go to Options/Menus
  • Add the following line: add_btn_default('xowa.file.print'); diff --git a/home/wiki/App/Wiki_types/Wikia.com.html b/home/wiki/App/Wiki_types/Wikia.com.html index 69f1ab0cc..bd9870c5c 100644 --- a/home/wiki/App/Wiki_types/Wikia.com.html +++ b/home/wiki/App/Wiki_types/Wikia.com.html @@ -5,7 +5,21 @@ App/Wiki types/Wikia.com - XOWA - + + +
    @@ -17,6 +31,52 @@
    +

    Acknowledgments

    @@ -32,6 +92,17 @@

    As Wikia's wikis run on version 1.19.9 of MediaWiki, it is possible for XOWA to import their database dumps.

    +

    + Note that the same process can also be applied to other MediaWiki wikis. For example, the Nethack wiki runs on MediaWiki and makes its dumps available for offline use: +

    +

    The remainder of this walkthrough details the process to import a wiki. It assumes the following:

    @@ -43,29 +114,26 @@ A wikia of dungeons.wikia.com (Dungeons and Dragons)
  • -

    - Feel free to adjust as necessary. -

    Part 1: Set up the wikia dump

    @@ -76,21 +144,114 @@ Navigate to Dashboard/Import/Offline
  • - Change the "Wiki" choice from "Wikipedia" to "Other wiki" + Change the Wiki choice from Wikipedia to Other wiki
  • - Change "Where to get the dump" from "download" to "read from file" + Change Where to get the dump from download to read from file
  • - In the next box, click on the "..." icon. Select C:\xowa\wiki\dungeons.wikia.com\dungeons_pages_current.xml + In the next box, click on the ... icon. Select C:\xowa\wiki\dungeons.wikia.com\dungeons_pages_current.xml
  • - Click "Import now" + Click Import now
  • Wait for the import to complete
  • +

    + Part 3: Import the images +

    +

    + This part is more complicated and requires three steps: +

    +

    + Part 3a: Setup dumpgenerator.py +

    + +
    +
    + Old +
    +
    +
    +        filename3 = u'%s/%s' % (imagepath, filename2)
    +
    +
    +
    + New +
    +
    +
    +        # replace invalid windows chars
    +        filename2 = filename2.replace(" ", "_")
    +        filename2 = filename2.replace("\"", "%22")
    +        filename2 = filename2.replace(":", "%3A")
    +        filename2 = filename2.replace("?", "%3F")
    +
    +        filename3 = u'%s/%s' % (imagepath, filename2)
    +
    +

    + Part 3b: Run dumpgenerator.py +

    + +

    + Part 3c: Setup Imagemagick and Inkscape +

    + +

    + Finally, run XOWA and navigate to dungeons.wikia.com/wiki/Drow_(4e_Monster). You will see images on the page +

    Other notes

    @@ -114,18 +275,15 @@ XOWA will try to implement these custom extensions in the future, but due to time constraints, they will be prioritized after Wikimedia extensions.
    - If you have an extension that you would like to see supported, please contact me through Help/Feedback and let me know the wiki and the extension. Depending on number of requests and difficulty of implementation, I will try to include support for it. + If you have an extension that you would like to see supported, please contact me through Help/Feedback and let me know the wiki and the extension. Depending on number of requests and difficulty of implementation, I will try to include support for it.

    diff --git a/home/wiki/Change_log.html b/home/wiki/Change_log.html index 68bd4fec5..04244106c 100644 --- a/home/wiki/Change_log.html +++ b/home/wiki/Change_log.html @@ -808,7 +808,7 @@

    - Links: Wiki_setup/Spanish_wikis + Links: Wiki_setup/Spanish_wikis
    - Links: Options/Dev + Links: Options/Dev

    @@ -1106,7 +1106,7 @@

    - Links: Dashboard/Image_databases + Links: Dashboard/Image_databases

    @@ -1632,7 +1632,7 @@
    - Links: Options/Shortcuts + Links: Options/Shortcuts
    - Links: Wiki_setup/Listing + Links: Wiki_setup/Listing
    - Links: Dev/Command-line/Dumps + Links: Dev/Command-line/Dumps