04-10-2019, 09:05 PM | #1 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Recognizing KFX virtues
Just to report that in this instance KFX is the format which rendered best my text:
Inspired by a recent link in the workshop, Quote:
To give it a Germanized look I decided to code the text using the "Fraktur Bold" letters in the "Mathematical Alphanumeric Symbols" of the Unicode block (U+1D400..U+1D7FF) embedding a publisher font since no native font of the Kindle support this block. Not using Unicodes from the "Basic Multilingual Plane" (BMP) proved a challenge... Expectedly, this MOBI badly tricked the K3: On the PW3 the MOBI introduced unwanted blanks after accenting Fraktur letters with diacritical combining marks: But converting the MOBI to KFX perfectly fixed the rendering: Find my sources here: |
|
04-10-2019, 09:54 PM | #2 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Perhaps using the '"Mathematical Alphanumeric Symbols" of the Unicode block (U+1D400..U+1D7FF)' is not a best practice for regular running text. What about using a Fraktur font? E.g., https://fonts.google.com/specimen/UnifrakturCook
|
04-11-2019, 06:42 AM | #3 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
My point was to use a code block that would not change the "Germanized" look even if the user would change in his preferences the viewing font. At the beginning, I was naively expecting the Kindle fonts to support that code block natively. Of course my idea failed when I needed to embed my own font. Coding the book with characters out of the BMP range, and converting to html entities was a fun struggle anyway. |
|
04-11-2019, 11:54 AM | #4 | |||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The Fraktur Unicode characters are meant only for Maths (Formulas, Equations, Variables, [...]). https://en.wikipedia.org/wiki/Mathem...umeric_Symbols Especially see the 2nd paragraph: Quote:
Quote:
Quote:
Side Note: A similar issue cropped up with the Hebrew Aleph character in this topic: https://www.mobileread.com/forums/sh....php?p=3574570 That user accidentally used the Hebrew Alef א (U+05D0) instead of the Alef Symbol ℵ (U+2135). It broke the layout of the book because he used the wrong character. Quote:
https://www.stixfonts.org/ You can also use a tool like BabelMap in order to find out which fonts on your computer include those characters: http://www.babelstone.co.uk/Software/BabelMap.html Complete Side Note: This reminds me of the "Look-Alike Domains" that unscrupulous spammers/malware-producers use to trick people into going to their domains or clicking on links or trying to get around spam blockers: https://krebsonsecurity.com/2018/03/...ual-confusion/ Another thing that many scammer "ghost writers" on places like Fiverr do is run text through programs which try to substitute original characters with their "visual equivalents" to try to get around plagiarism checkers. Here's some examples: https://forum.fiverr.com/t/article-w...m-mafia/160631 https://forum.fiverr.com/t/scam-plag...lers/146821/15 An easy way to spot this is typically your spellchecker going insane with red squigglies everywhere. Long story short... don't do this. Just include a Fraktur font for visual distinction. Last edited by Tex2002ans; 04-11-2019 at 01:25 PM. |
|||||
04-11-2019, 01:07 PM | #5 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
@lumpynose, @Tex2002ans,
Thanks for the your comments and suggestions on best practices; I would never advocate to do otherwise. I was just playing with the Unicode as a fun experiment. Nonetheless my point on KFX better rendering remains. |
04-11-2019, 01:53 PM | #6 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
(I don't know anything about creating epubs.) Out of curiosity, is there some html that you use to add the accents to the letters or do you use predefined letters that have accents? In previous life I used the TeX typesetting software and with it you could add accents and whatnot to any letter with a special sequence after the letter, I think. This was decades before Unicode.
|
04-11-2019, 01:58 PM | #7 |
Grand Sorcerer
Posts: 6,497
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
PoP, are you a Mac user?
I ask because I have been unable to create books in KFX format that use unicode characters beyond plane 0 on a PC. If you are using a PC I would like to know more about how you made that work. |
04-11-2019, 02:04 PM | #8 | |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
If you're on Windows there's a thing called Character Map. As an experiment you could try copying a character from it and pasting it into whatever you're using, just to verify that it's not a keyboarding issue. |
|
04-11-2019, 02:52 PM | #9 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
The zip attached to the OP contains the sources that I used as input to Kindlegen. The first pages of the book detail (but in french) the method that I used: Spoiler:
Basically, you can't code non-BMP characters directly. I used a text editor to create "Struwwelpeter fraktur.html" and then used BabelPad's Tools To convert Unicodes to NCR, producing "Struwwelpeter.html". This feeds happily Kindlegen as well as any browser. After that I used Caliber and *your* KFX output plugin to generate the KFX book format. Last edited by PoP; 04-11-2019 at 03:15 PM. Reason: mentioned the KFX plugin |
|
04-11-2019, 03:10 PM | #10 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Nothing special really. Usually, I just use dead keys on an International Keyboard to input pre-composed characters. e.g. ' followed by e gives é In this case (fraktur) I used a combination of YayText and WizKey¹ after the fraktur character to generate the diacritical combining marks, to accentuate them. ¹ With a crazy big key definition file that I developed along the years (btw no promotion here - I am not affiliated in any way with WizKey) |
|
04-11-2019, 04:01 PM | #11 | |
Grand Sorcerer
Posts: 6,497
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Oddly, if I skip using kindlegen or the calibre GUI it fails for me. I need to do some research into why only some conversions methods work properly. |
|
04-15-2019, 09:40 AM | #12 | |
Grand Sorcerer
Posts: 6,497
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
There is a strange bug in the KFX converter within the Kindle Previewer that causes these characters to be rejected unless they are preceded in the book by at least one character from a right-to-left script. In this case the backwards "Copyleft" used near the beginning of the book includes a Hebrew character (nun) that prevents the bug from manifesting. |
|
04-15-2019, 01:37 PM | #13 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
|
04-15-2019, 02:55 PM | #14 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
04-15-2019, 04:38 PM | #15 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with KFX files, please | pamEDT | Kindle Formats | 8 | 09-08-2018 10:45 AM |
KFX to KFX to remove DRM | Tomifonication | Conversion | 12 | 08-09-2018 01:32 PM |
KFX Soon? | CRussel | Calibre | 16 | 03-06-2016 11:56 AM |
On the virtues of proofreading with a seasoned editor | Ken.Hagdal | Writers' Corner | 0 | 02-02-2014 07:09 AM |
Free Book (ADE/PDF) - The Bourgeois Virtues | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 6 | 11-01-2010 08:03 PM |