-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update most patches for 4.29.18730 (#94)
Notable changes: - "Change Browse Kobo home screen link target - Articles" is not possible anymore. - More updates than usual were required for this version.
- Loading branch information
Showing
13 changed files
with
2,166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# The following patch(es) were fixed and are updated by pgaskin (geek1011) | ||
|
||
Remove PDF map widget shown during panning: | ||
- Enabled: no | ||
- Description: Removes the PDF map widget shown during panning and zooming. | ||
- BaseAddress: {Sym: "N3AdobeReader::showMapWidget()"} | ||
# tail: N3AdobeReader::updatePanningMap() -> N3AdobeReader::hideMapWidget() | ||
# TODO: figure out what broke the plt parsing in kobopatch for libadobe in 18730+ | ||
- ReplaceBytes: {Offset: 80, FindInstBW: 0x1BF94, ReplaceInstBW: 0x1B2F8} | ||
- ReplaceBytes: {Offset: 192, FindInstBW: 0x1BF94, ReplaceInstBW: 0x1B2F8} |
440 changes: 440 additions & 0 deletions
440
src/versions/4.29.18730/libnickel.so.1.0.0.yaml/geoffr.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
123 changes: 123 additions & 0 deletions
123
src/versions/4.29.18730/libnickel.so.1.0.0.yaml/jackie_w.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# The following patch(es) were made by jackie_w | ||
|
||
Dictionary text font-family/font-size/line-height: | ||
- Enabled: no | ||
- Description: | | ||
This patch allows you to to customise the appearance of the text | ||
in the pop-up and full-screen dictionary widgets. | ||
4.17.13651: improved to also reduce the blank lines displayed in many | ||
sideloaded custom dictionaries which contain <blockquote>. | ||
4.24.15676: enforced update to accommodate Kobo changes related to new | ||
dictionaries being released Oct 1st 2020 | ||
See https://www.mobileread.com/forums/showpost.php?p=3521137&postcount=48 | ||
for screenshots | ||
# | ||
You can change one or more of the following properties: | ||
- font-family | ||
- font-size | ||
- line-height | ||
# | ||
These are the Kobo defaults | ||
Glo - Georgia 23px 1.4em | ||
H2O - Georgia 29px 1.4em | ||
GloHD - Georgia 32px 1.4em | ||
AuraONE - Georgia 42px 1.4em | ||
# Stage 1: Change DictionaryView to remove %variables | ||
# from: | ||
# body { padding-left: %3px; } | ||
# body { font: %1px serif; line-height: 1.4em; } | ||
# span.word { font-weight: bold; font-size: 130%; margin-left: -%3px; } | ||
# div.descriptionFont { font-family: serif; } | ||
# ol { font-size: %1px; margin-left: %2em; margin-top: 0px; } | ||
# ol p { font-size: %1px; } | ||
# i, i * { font-style: italic; } | ||
# b, b * { font-weight: bold; } | ||
# .sc, .sc * { font-variant: small-caps; } | ||
# .block, .border { border-radius: 3px; padding: 0em .2em; font-size: 90%; } | ||
# to: | ||
# body {font-size:%1px; line-height:1.40em; font-family:Georgia ;} | ||
# body {padding-left:0.5em} | ||
# span.word {font-weight:bold; font-size:130%; margin-left:-0.3em} | ||
# ol {margin-left:1em; margin-top:0} | ||
# blockquote {margin:.3em 0 .3em 1em} | ||
# blockquote>blockquote {margin:-.3em 0 0 2em} | ||
# i, i * {font-style:italic} | ||
# b, b * {font-weight:bold} | ||
# .sc, .sc * {font-variant:small-caps} | ||
# .block, .border {border-radius:3px; padding:0 .2em; font-size:90%} | ||
|
||
# ##### N.B. Do not change the next 4 lines ##### | ||
- FindReplaceString: | ||
Find: "body { padding-left: %3px; }\nbody { font: %1px serif; line-height: 1.4em; }\nspan.word { font-weight: bold; font-size: 130%; margin-left: -%3px; }\ndiv.descriptionFont { font-family: serif; }\nol { font-size: %1px; margin-left: %2em; margin-top: 0px; }\nol p { font-size: %1px; }\ni, i * { font-style: italic; }\nb, b * { font-weight: bold; }\n.sc, .sc * { font-variant: small-caps; }\n.block, .border { border-radius: 3px; padding: 0em .2em; font-size: 90%; }\n" | ||
Replace: "body {font-size:%1px; line-height:1.40em; font-family:Georgia ;}\nbody {padding-left:0.5em}\nspan.word {font-weight:bold; font-size:130%; margin-left:-0.3em}\nol {margin-left:1em; margin-top:0}\nblockquote {margin:.3em 0 .3em 1em}\nblockquote>blockquote {margin:-.3em 0 0 2em}\ni, i * {font-style:italic}\nb, b * {font-weight:bold}\n.sc, .sc * {font-variant:small-caps}\n.block, .border {border-radius:3px; padding:0 .2em; font-size:90%}\n" | ||
MustMatchLength: yes | ||
# ##### N.B. Do not change anything above this line ##### | ||
|
||
# Stage 2: N.B. You MUST keep old and new strings EXACTLY the same length | ||
|
||
# Notes for changing font-family: | ||
# 1. Pad the shorter of the old/new strings with spaces to | ||
# keep same length for both strings (see examples below) | ||
# | ||
# 2. If the new font-family name (max. 32 chars) contains any spaces it | ||
# should be wrapped in 'single quotes' (see examples 2, 3) | ||
# | ||
# 3. To change from Georgia to the Kobo default sans-serif font, Avenir, | ||
# use either one of the following to achieve the same result: | ||
# - sans-serif | ||
# - 'Avenir Next Medium' | ||
|
||
# Un-comment ONE ONLY of the following ReplaceString examples | ||
# to change dictionary font-family from default Georgia: | ||
# - to a different built-in font | ||
# - to one of your sideloaded custom fonts | ||
|
||
#- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "sans-serif", MustMatchLength: yes} | ||
#- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "'Gill Sans'", MustMatchLength: yes} | ||
#- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "'Kobo Nickel'", MustMatchLength: yes} | ||
#- ReplaceString: {Offset: 54, Find: "Georgia ", Replace: "Bookerly", MustMatchLength: yes} | ||
|
||
# Un-comment and edit next line to change font-size | ||
#- ReplaceString: {Offset: 16, Find: "%1px", Replace: "32px", MustMatchLength: yes} | ||
|
||
# Un-comment and edit next line to change line spacing | ||
#- ReplaceString: {Offset: 34, Find: "1.40em", Replace: "1.30em", MustMatchLength: yes} | ||
|
||
Custom navigation menu page number text: | ||
- Enabled: no | ||
- Description: Changes the page number text format in the reading navigation menu | ||
- FindReplaceString: {Find: "Page %1 of %2", Replace: "%1 / %2"} | ||
|
||
# The next 2 patches are alternatives. Enable ONE ONLY. | ||
# They have replaced the old patch named 'KePub stylesheet additions' | ||
|
||
KePub stylesheet additions - text justify: | ||
- Enabled: no | ||
- PatchGroup: KePub stylesheet additions alternatives | ||
- Description: Make full justification the default in KePubs | ||
- FindBaseAddressString: ".KBSearchResult, .KBAnnotation, .KBHighlighting {" | ||
# *** Don't change anything in the 4 ReplaceString lines below *** | ||
- ReplaceString: {Find: ".KBSearchResult, .KBAnnotation, .KBHighlighting { font-size: 100% !important; -webkit-text-combine: inherit !important; }\n", Replace: ".KBSearchResult,.KBAnnotation,.KBHighlighting{font-size:100%!important;-webkit-text-combine:inherit!important}.KBAnnotatio", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 122, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; }\n", Replace: "n[writingMode=\"horizontal-tb\"]{border-bottom:2px solid #000!important}.KBAnnotation[writin", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 212, Find: ".KBAnnotation[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; }\n", Replace: "gMode=\"vertical-rl\"]{border-right:2px solid #000!important}.KBAnnotation[writingMode=\"v", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 299, Find: ".KBAnnotation[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }", Replace: "ertical-lr\"]{border-left:2px solid #000!important}/*********************************/", MustMatchLength: yes} | ||
# *** Don't change anything in the 4 ReplaceString lines above *** | ||
# | ||
- FindReplaceString: {Find: "/*********************************/", Replace: "body{text-align:justify }", MustMatchLength: yes} | ||
|
||
KePub stylesheet additions - optimizeSpeed: | ||
- Enabled: no | ||
- PatchGroup: KePub stylesheet additions alternatives | ||
- Description: | | ||
Disables ligatures/kerning, but fixes some rendering problems that affect | ||
fully justified text in KePubs | ||
- FindBaseAddressString: ".KBSearchResult, .KBAnnotation, .KBHighlighting {" | ||
# *** Don't change anything in the 4 ReplaceString lines below *** | ||
- ReplaceString: {Find: ".KBSearchResult, .KBAnnotation, .KBHighlighting { font-size: 100% !important; -webkit-text-combine: inherit !important; }\n", Replace: ".KBSearchResult,.KBAnnotation,.KBHighlighting{font-size:100%!important;-webkit-text-combine:inherit!important}.KBAnnotatio", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 122, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; }\n", Replace: "n[writingMode=\"horizontal-tb\"]{border-bottom:2px solid #000!important}.KBAnnotation[writin", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 212, Find: ".KBAnnotation[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; }\n", Replace: "gMode=\"vertical-rl\"]{border-right:2px solid #000!important}.KBAnnotation[writingMode=\"v", MustMatchLength: yes} | ||
- ReplaceString: {Offset: 299, Find: ".KBAnnotation[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }", Replace: "ertical-lr\"]{border-left:2px solid #000!important}/*********************************/", MustMatchLength: yes} | ||
# *** Don't change anything in the 4 ReplaceString lines above *** | ||
# | ||
- FindReplaceString: {Find: "/*********************************/", Replace: "body{text-rendering:optimizeSpeed }", MustMatchLength: yes} |
23 changes: 23 additions & 0 deletions
23
src/versions/4.29.18730/libnickel.so.1.0.0.yaml/jcn363.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# The following patch(es) are ported from jcn363's patches | ||
|
||
Shorten dictionary entry not found message: | ||
- Enabled: no | ||
- Description: | | ||
Idea by pakoe | ||
cf. https://www.mobileread.com/forums/showpost.php?p=3043631&postcount=111 | ||
- FindReplaceString: | ||
Find: "Your search for “%1” did not match any words in the dictionary. The closest match was “%2”." | ||
Replace: "No match for “%1”, closest match was “%2”." | ||
|
||
Change Wikipedia search language: | ||
- Enabled: no | ||
- Description: | | ||
The patch set the search language in Wikipedia. | ||
Replace the "en" (in both the replace_string lines) to language code you want. | ||
For example English is "en" (set as default), for German is "de", for Russian is "ru". | ||
- FindReplaceString: | ||
Find: "\0https://%1.m.wikipedia.org/wiki/Special:Search\0" | ||
Replace: "\0https://es.m.wikipedia.org/wiki/Special:Search\0" | ||
- FindReplaceString: | ||
Find: "\0https://%1.wikipedia.org/wiki/Special:Search\0" | ||
Replace: "\0https://es.wikipedia.org/wiki/Special:Search\0" |
Oops, something went wrong.