11-27-2016, 01:45 PM | #1 |
Enthusiast
Posts: 48
Karma: 854254
Join Date: Nov 2016
Device: none
|
font with full super/under script support?
hello,
Which system font got full super/under script? Something installable. e.g.: ◌ͣ ◌ᷨ ◌ͨ ◌ͩ ◌ͤ ◌ᷫ ◌ᷚ ◌ͪ ◌ͥ ◌ᷜ ◌ᷝ ◌ͫ ◌ᷠ ◌ͦ ◌ᷮ ◌ͭ ◌ͧ ◌ͮ ◌ᷱ ◌ͯ ◌ᷦ thanks |
11-27-2016, 04:03 PM | #2 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Those are known as Combining Diacritical Marks:
https://en.wikipedia.org/wiki/Combining_character According to FileFormat.info, these are some fonts have support for that Unicode Range: http://www.fileformat.info/info/unic...ontsupport.htm You could also use BabelMap to figure out which fonts installed on your computer have support for that range: http://www.babelstone.co.uk/Software/BabelMap.html Press Fonts -> Fonts Analysis Utility. Then make sure you click List All Fonts that Cover this Unicode Block + choose Combining Diacritical Marks in the dropdown: |
Advert | |
|
11-27-2016, 04:09 PM | #3 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But it is possible that that unicode block might not work with an eInk Reader. Fior that matter, most reading programs/apps as well might not work.
|
11-27-2016, 04:16 PM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
What is wrong with just using <sub> and <sup>?
|
11-27-2016, 06:13 PM | #5 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@pluma: Since you indicated an interest in epub3 books, you might be able to use MathML. Of course, as Toxaris suggested, using <sub> and <sup> would be the most robust solution.
|
Advert | |
|
11-28-2016, 01:35 AM | #6 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Can't say I ever ran across an ebook using them though. I believe pluma meant having the letters DIRECTLY above/below the characters (over/underscript)... slightly different than a normal super/subscript. But maybe I made a wrong assumption about his intentions. If pluma could explain some more of his specific use-case, that might also help. Are you working on some sort of Mathematics book? Linguistics? An old Bible? I can't really think of many other uses for over/underscripts. Do you already have a completed source document that is using all the Unicode diacritics? Quote:
Code:
<mrow> <mover> <mi> x </mi> <mo> e </mo> </mover> </mrow> The relevant MathML would use <munder> (underscript) + <mover> (overscript) + <munderover> (under/overscript): https://www.w3.org/TR/MathML2/chapte...l#presm.munder Last edited by Tex2002ans; 11-28-2016 at 02:10 AM. |
||
11-28-2016, 07:57 AM | #7 |
Enthusiast
Posts: 48
Karma: 854254
Join Date: Nov 2016
Device: none
|
sheer insanity!!
Code:
<mrow> <munder accentunder="true"> <mrow> <mi> x </mi> <mo> + </mo> <mi> y </mi> <mo> + </mo> <mi> z </mi> </mrow> <mo> ⏟ </mo> </munder> <mtext> versus </mtext> <munder accentunder="false"> <mrow> <mi> x </mi> <mo> + </mo> <mi> y </mi> <mo> + </mo> <mi> z </mi> </mrow> <mo> ⏟ </mo> </munder> </mrow> Specially with UTF-8 which it could take advantage of the many features it got. I just found out that "alt+6+numbers" works in the system: ¹a²b³c⁴d⁵e⁶ But I can't find the letters. So the font is installed already. I'd love to be able to do this with letters. thanks. |
11-28-2016, 08:34 AM | #8 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Also, AFAK, there's no single free font that covers all letters that you need from the following two Unicode ranges: Combining Diacritical Marks (U+0300-U+036F) Combining Diacritical Marks Supplement᷀ (U+1DC0-U+0DFF) Also many advanced users disable the Publisher Fonts option in their reading apps. If you're working on a non-commercial book, you also might want to consider a LaTex based solution that'll reformat the input to a .pdf file for 6" screens. For example, Jellby has created a beautiful PDF version of the 3 Musketeers. Alternatively, you could also convert all math formulas to SVG. |
|
11-28-2016, 12:03 PM | #9 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
11-28-2016, 12:04 PM | #10 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
11-28-2016, 08:13 PM | #11 | ||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Are you trying to use these characters as footnotes? Or in Maths equations? Or what? Side Note: Most fonts don't even have the Unicode superscript numbers, let alone the superscript letters. Plus the letters are split across many blocks... because their use case is mostly for highly specialized Linguistics [IPA/UPA], NOT everyday typing. Side Note #2: Another thing to look out for (besides the superscript characters missing in most fonts) is completely crap kerning/placement. So you can get really atrocious looking things like: Code:
Sample example.¹⁰ Sample example.<sup>10</sup> Quote:
Quote:
Also, sometimes things are better left to the rendering engine + OpenType fonts to handle... for example, ligatures are best left out of source material and would be substituted on-the-fly: fi (fi) + ff (ff) + fl (fl) + ae (æ) + [...]. Quote:
The purpose of MathML was to create something that is easily parsable (XML) + easily passable between programs (you can Copy/Paste/Import/Export equations) + ties semantic information into equations (VERY important for things like Text-to-Speech). I admit, it isn't really the easiest thing to read/type out by hand... but NO complicated Math is. But as Doitsu pointed out, there are many tools to help create equations then export to MathML. If you already have a completed source document, there are plenty of tools out there to help you. Last edited by Tex2002ans; 11-28-2016 at 09:30 PM. |
||||
12-05-2016, 05:18 PM | #12 | |
Enthusiast
Posts: 48
Karma: 854254
Join Date: Nov 2016
Device: none
|
Quote:
Can you reccomend a way to make sure the use OpenType in both latex/pdf and epub? thanks |
|
12-06-2016, 02:24 AM | #13 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Even if you embed the font, it is still no guarantee it will be used. It also depends on the renderer. A lot of reading programs do not support embedded fonts. |
|
12-09-2016, 04:33 AM | #14 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I am no font expert, so someone else would post about tools for detailed font info. But the very basic is to go to wherever your fonts are installed (/usr/share/fonts) and see which ones are .otf.
Quote:
https://en.wikipedia.org/wiki/OpenType#Math Here are a few math fonts that work in LaTeX (not necessarily OpenType): http://www.tug.dk/FontCatalogue/mathfonts.html EPUB2 supports TTF or OTF fonts, and EPUB3 added support for WOFF fonts. I don't embed fonts in ebooks (only in rare cases when I need an obscure character or two). In that case, I only use a handful of fonts. Here is a list of Open Source fonts that cover a large portion of the Unicode characters: https://en.wikipedia.org/wiki/Open-s...code_typefaces For ebooks, Charis SIL is a "fan favorite" (JSWolf also released a thicker variant that looks better on e-ink). Toxaris mentioned Symbola (which we recently ran across). This font covers an absolute ton of the obscure characters (Wingdings, Musical Notes, etc. etc.). I personally use Roboto (Android's Sans Serif font) + Fira Sans (a Mozilla Sans Serif font) + Gentium + I was recently told about Junicode (Serif, this one works very well in Print). Also, I don't get the infatuation with having your Ebook font match your Print font... they are completely different beasts. See all of the complaints from users on MobileRead where the font is "too light for e-ink". I personally just leave fonts up to the device/user and let them choose whatever they prefer. Last edited by Tex2002ans; 12-09-2016 at 04:41 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
K3.4 full font hack doesn't support AZW3/KF-8 | lp1900 | Kindle Developer's Corner | 0 | 07-17-2013 11:07 AM |
IBIS Reader on iPad and iPhone now has full font support (and other improvements) | kjk | Apple Devices | 0 | 06-21-2010 05:20 PM |
Feature Request: Super and Sub Script | Rootman | Sigil | 1 | 12-03-2009 12:37 PM |
Script to convert a directory full of files? | mdibella | Kindle Formats | 2 | 10-14-2008 01:21 PM |