diff --git a/.adds/nm/items b/.adds/nm/items index d36a5b9..9902753 100644 --- a/.adds/nm/items +++ b/.adds/nm/items @@ -12,7 +12,10 @@ menu_item :main :Screensaver :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo menu_item :main :Screenshots :nickel_setting :toggle :screenshots menu_item :main :Auto USB :nickel_setting :toggle :auto_usb_gadget -menu_item :main :Disable Pencil :cmd_output :500 :/mnt/onboard/.adds/scripts/disable_notebook.sh +menu_item :main :Hide Notebook :cmd_output :500 :/mnt/onboard/.adds/scripts/disable_notebook.sh + chain_success :power :reboot + +menu_item :main :Toggle Legibility :cmd_output :500 :/mnt/onboard/.adds/scripts/toggle_wk_rendering.sh chain_success :power :reboot menu_item :main :IP Address :cmd_output :500:/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}' diff --git a/.adds/scripts/disable_notebook.sh b/.adds/scripts/disable_notebook.sh index 6d5391c..65771d7 100755 --- a/.adds/scripts/disable_notebook.sh +++ b/.adds/scripts/disable_notebook.sh @@ -1,6 +1,7 @@ #!/bin/sh -# Script to disable Kobo notebook functionality +# Script to disable Kobo notebook functionality. +# This hides the Notebook tab on Kobo Libra Color. CONFIG_FILE="/mnt/onboard/.kobo/Kobo/Kobo eReader.conf" diff --git a/.adds/scripts/toggle_wk_rendering.sh b/.adds/scripts/toggle_wk_rendering.sh new file mode 100644 index 0000000..efe2352 --- /dev/null +++ b/.adds/scripts/toggle_wk_rendering.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Script to toggle webkitTextRendering setting. +# This causes certain font features to work in kepub files. + +CONFIG_FILE="/mnt/onboard/.kobo/Kobo/Kobo eReader.conf" + +# Check if the setting exists +if grep -q "^webkitTextRendering=optimizeLegibility" "$CONFIG_FILE"; then + # Remove the line + sed -i '/^webkitTextRendering=optimizeLegibility/d' "$CONFIG_FILE" + echo "WebKit text rendering disabled." +else + # Add the line below [Reading] section + if grep -q "^\[Reading\]" "$CONFIG_FILE"; then + sed -i '/^\[Reading\]/a webkitTextRendering=optimizeLegibility' "$CONFIG_FILE" + echo "WebKit text rendering enabled." + else + echo "Could not find [Reading] section. Skipped." + fi +fi diff --git a/fonts/KC_Charter-Bold.ttf b/fonts/KF_Charter-Bold.ttf old mode 100644 new mode 100755 similarity index 94% rename from fonts/KC_Charter-Bold.ttf rename to fonts/KF_Charter-Bold.ttf index 387371c..404e1e3 Binary files a/fonts/KC_Charter-Bold.ttf and b/fonts/KF_Charter-Bold.ttf differ diff --git a/fonts/KC_Charter-BoldItalic.ttf b/fonts/KF_Charter-BoldItalic.ttf old mode 100644 new mode 100755 similarity index 94% rename from fonts/KC_Charter-BoldItalic.ttf rename to fonts/KF_Charter-BoldItalic.ttf index ce1f424..d79dd80 Binary files a/fonts/KC_Charter-BoldItalic.ttf and b/fonts/KF_Charter-BoldItalic.ttf differ diff --git a/fonts/KC_Charter-Italic.ttf b/fonts/KF_Charter-Italic.ttf old mode 100644 new mode 100755 similarity index 94% rename from fonts/KC_Charter-Italic.ttf rename to fonts/KF_Charter-Italic.ttf index 698f3fe..a986bd0 Binary files a/fonts/KC_Charter-Italic.ttf and b/fonts/KF_Charter-Italic.ttf differ diff --git a/fonts/KC_Charter-Roman.ttf b/fonts/KF_Charter-Regular.ttf old mode 100644 new mode 100755 similarity index 94% rename from fonts/KC_Charter-Roman.ttf rename to fonts/KF_Charter-Regular.ttf index e1f7baa..1364077 Binary files a/fonts/KC_Charter-Roman.ttf and b/fonts/KF_Charter-Regular.ttf differ diff --git a/fonts/KF_Garamond-Bold.ttf b/fonts/KF_Garamond-Bold.ttf new file mode 100755 index 0000000..f5047e8 Binary files /dev/null and b/fonts/KF_Garamond-Bold.ttf differ diff --git a/fonts/KF_Garamond-BoldItalic.ttf b/fonts/KF_Garamond-BoldItalic.ttf new file mode 100755 index 0000000..6e6b321 Binary files /dev/null and b/fonts/KF_Garamond-BoldItalic.ttf differ diff --git a/fonts/KF_Garamond-Italic.ttf b/fonts/KF_Garamond-Italic.ttf new file mode 100755 index 0000000..1816736 Binary files /dev/null and b/fonts/KF_Garamond-Italic.ttf differ diff --git a/fonts/KF_Garamond-Regular.ttf b/fonts/KF_Garamond-Regular.ttf new file mode 100755 index 0000000..21487ec Binary files /dev/null and b/fonts/KF_Garamond-Regular.ttf differ diff --git a/fonts/KF_Jost-Bold.ttf b/fonts/KF_Jost-Bold.ttf new file mode 100755 index 0000000..557be2e Binary files /dev/null and b/fonts/KF_Jost-Bold.ttf differ diff --git a/fonts/KF_Jost-BoldItalic.ttf b/fonts/KF_Jost-BoldItalic.ttf new file mode 100755 index 0000000..b15099f Binary files /dev/null and b/fonts/KF_Jost-BoldItalic.ttf differ diff --git a/fonts/KF_Jost-Italic.ttf b/fonts/KF_Jost-Italic.ttf new file mode 100755 index 0000000..69dc3bc Binary files /dev/null and b/fonts/KF_Jost-Italic.ttf differ diff --git a/fonts/KF_Jost-Regular.ttf b/fonts/KF_Jost-Regular.ttf new file mode 100755 index 0000000..069f40e Binary files /dev/null and b/fonts/KF_Jost-Regular.ttf differ