Changeset 15829 in niluje


Ignore:
Timestamp:
Mar 10, 2019, 8:48:32 PM (2 months ago)
Author:
NiLuJe
Message:

Switch to Jackie's customized version of the dictionary patch (thanks!)

Location:
Configs/trunk/Kindle/Kobo_Hacks/Patches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Kobo_Hacks/Patches/kobopatch.cfg

    r15818 r15829  
    2626    Always display chapter name on navigation menu: yes
    2727    Allow searches on Extra dictionaries: yes
    28     Dictionary text font-family/font-size/line-height - beta: yes
     28    Dictionary text font-family/font-size/line-height - beta: no
    2929    Dictionary, remove long winded closest match notification: yes
    3030    Set reading footer height: no
    3131  /home/niluje/SVN/Configs/trunk/Kindle/Kobo_Hacks/Patches/libnickel_extra.yaml:
     32    Dictionary text font-family/font-size/line-height - built-in and custom: yes
    3233  src/librmsdk.so.1.0.0.yaml:
    3334    Default ePub monospace font (Courier): yes
  • Configs/trunk/Kindle/Kobo_Hacks/Patches/libnickel_extra.yaml

    r15657 r15829  
     1Dictionary text font-family/font-size/line-height - built-in and custom:
     2  - Enabled: no
     3  - Description: |
     4      See https://www.mobileread.com/forums/showpost.php?p=3521137&postcount=48
     5      This patch allows you to to customise the appearance of the text
     6      in the dictionary pop-up widget and full-screen dictionary page.
     7      You can change one or more of the following attributes:
     8      - font-family
     9      - font-size
     10      - line-height
     11      These are the Kobo defaults:
     12                Glo: Georgia  23px  1.4em
     13                H2O: Georgia  29px  1.4em
     14              GloHD: Georgia  32px  1.4em
     15            AuraONE: Georgia  42px  1.4em
     16  #
     17  # Stage 1: Change DictionaryView to remove %1, %2 etc variables
     18  # from:
     19  #    * { font: %1px %2; line-height: %5em; }
     20  #    div.descriptionFont { font-family: %3; }
     21  #    ol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; }
     22  #    ol p { font-size: %1px; font-weight:normal; }
     23  # to:
     24  #    * { font-size: %1px; line-height: 1.40em;font-family: Georgia                      ;}
     25  #    ol {margin-left:1em; margin-top:0}
     26  #    blockquote {margin:0.3em 0 0.3em 1em} blockquote>blockquote {margin:-0.3em 0 0 2em}
     27  #
     28  # ##### N.B. Do not change the next 3 lines #####
     29  # Also improve appearance of custom Extra:_ dicts which use <blockquote>
     30  - FindReplaceString:
     31      Find:    "* { font: %1px %2; line-height: %5em; }\ndiv.descriptionFont { font-family: %3; }\nol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; }\nol p { font-size: %1px; font-weight:normal; }\n"
     32      Replace: "* { font-size: %1px; line-height: 1.40em;font-family: Georgia                      ;}\n\nol {margin-left:1em; margin-top:0}\nblockquote {margin:0.3em 0 0.3em 1em} blockquote>blockquote {margin:-0.3em 0 0 2em}\n"
     33      MustMatchLength: yes
     34  # ##### N.B. Do not change anything above this line #####
     35  #
     36  # Stage 2: N.B. You MUST keep old and new strings EXACTLY the same length
     37  # Un-comment ONE ONLY of the following replace_string examples
     38  #   to change dictionary font-family from default Georgia:
     39  #   - to a different built-in font
     40  #   - to one of your sideloaded custom fonts
     41  #
     42  # Notes for changing font-family:
     43  #   1.  Pad the shorter of the old/new strings with spaces to
     44  #       keep same length for both strings (see examples below)
     45  #
     46  #   2.  If the new font-family name (max. 29 chars) contains any spaces it
     47  #       should be wrapped in 'single quotes' (see examples 2, 3)
     48  #
     49  #   3.  To change from Georgia to the Kobo default sans-serif font, Avenir,
     50  #       use either one of the following to achieve the same result:
     51  #       - sans-serif
     52  #       - 'Avenir Next Medium'
     53  #
     54  # Examples for customising font-family:
     55  #  - ReplaceString: {Offset: 54, Find: "Georgia   ", Replace: "sans-serif", MustMatchLength: yes}
     56  #  - ReplaceString: {Offset: 54, Find: "Georgia    ", Replace: "'Gill Sans'", MustMatchLength: yes}
     57  #  - ReplaceString: {Offset: 54, Find: "Georgia      ", Replace: "'Kobo Nickel'", MustMatchLength: yes}
     58  #  - ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "Bookerly", MustMatchLength: yes}
     59  - ReplaceString:
     60      Offset: 54
     61      Find:    "Georgia"
     62      Replace: "Arial  "
     63      MustMatchLength: yes
     64  #
     65  # Un-comment and edit next line to change font-size
     66  - ReplaceString: {Offset: 15, Find: "%1px", Replace: "32px", MustMatchLength: yes}
     67  #
     68  # Un-comment and edit next line to change line spacing
     69  #- ReplaceString: {Offset: 34, Find: "1.40", Replace: "1.30", MustMatchLength: yes}
Note: See TracChangeset for help on using the changeset viewer.