Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2016, 01:45 PM   #1
pluma
Enthusiast
pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.
 
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
pluma is offline   Reply With Quote
Old 11-27-2016, 04:03 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
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:

Click image for larger version

Name:	BabelMapFontAnalysisDiacriticalMarks.png
Views:	414
Size:	17.3 KB
ID:	153267
Tex2002ans is offline   Reply With Quote
Advert
Old 11-27-2016, 04:09 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 11-27-2016, 04:16 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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>?
Toxaris is offline   Reply With Quote
Old 11-27-2016, 06:13 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
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.
Doitsu is offline   Reply With Quote
Advert
Old 11-28-2016, 01:35 AM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
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.
Indeed. I have no clue how that block works on e-ink devices (never tried it)... and if many programs on the PC can't handle them properly (especially more obscure symbols like IPA accents)... I doubt many readers would either.

Can't say I ever ran across an ebook using them though.

Quote:
Originally Posted by Toxaris View Post
What is wrong with just using <sub> and <sup>?
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:
Originally Posted by Doitsu View Post
@pluma: Since you indicated an interest in epub3 books, you might be able to use MathML.
Indeed. If you were going for EPUB3, it would probably be more robust doing the overscript using MathML:

Code:
<mrow>
  <mover>
	<mi> x </mi>
	<mo> e </mo>
  </mover>
</mrow>
That would get you an italic 'x' with a roman 'e' directly above it.

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.
Tex2002ans is offline   Reply With Quote
Old 11-28-2016, 07:57 AM   #7
pluma
Enthusiast
pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.
 
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> &UnderBrace; </mo>
  </munder>
  <mtext>&nbsp;versus&nbsp;</mtext>
  <munder accentunder="false">
    <mrow>
      <mi> x </mi>
      <mo> + </mo>
      <mi> y </mi>
      <mo> + </mo>
      <mi> z </mi>
    </mrow>
    <mo> &UnderBrace; </mo>
  </munder>
</mrow>
Unbelivable!! That's not a practical format for humans to express in written form!! I think that's a step backwards from Egyptian hieroglyphics. C'mon in 2016, with an advanced staged of technology and have to write with that I think is plain retarded, undoing centuries of evolution. Whover came up with that standard should be fired for causing brain damage and waste of CPU cycles.

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.
pluma is offline   Reply With Quote
Old 11-28-2016, 08:34 AM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pluma View Post
That's not a practical format for humans to express in written form!!
There are many websites that will automatically generate MathML, e.g. MathML Central.

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.
Doitsu is offline   Reply With Quote
Old 11-28-2016, 12:03 PM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by pluma View Post
I just found out that "alt+6+numbers" works in the system:

¹a²b³c⁴d⁵e⁶
If this is the effect you want, use the <sup> tag. Much better supported that full unocode fonts. Not only that, full unicode fonts are big.
Toxaris is offline   Reply With Quote
Old 11-28-2016, 12:04 PM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by pluma View Post
Code:
<mrow>
  <munder accentunder="true">
    <mrow>
      <mi> x </mi>
      <mo> + </mo>
      <mi> y </mi>
      <mo> + </mo>
      <mi> z </mi>
    </mrow>
    <mo> &UnderBrace; </mo>
  </munder>
  <mtext>&nbsp;versus&nbsp;</mtext>
  <munder accentunder="false">
    <mrow>
      <mi> x </mi>
      <mo> + </mo>
      <mi> y </mi>
      <mo> + </mo>
      <mi> z </mi>
    </mrow>
    <mo> &UnderBrace; </mo>
  </munder>
</mrow>
Unbelivable!! That's not a practical format for humans to express in written form!! I think that's a step backwards from Egyptian hieroglyphics. C'mon in 2016, with an advanced staged of technology and have to write with that I think is plain retarded, undoing centuries of evolution. Whover came up with that standard should be fired for causing brain damage and waste of CPU cycles.
I find it perfectly readable, sorry.
Toxaris is offline   Reply With Quote
Old 11-28-2016, 08:13 PM   #11
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by pluma View Post
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.
What is your use case though?

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:

Click image for larger version

Name:	SuperScriptCompare.png
Views:	359
Size:	3.9 KB
ID:	153278

Code:
Sample example.¹⁰
Sample example.<sup>10</sup>
Quote:
Originally Posted by Toxaris View Post
If this is the effect you want, use the <sup> tag. Much better supported that full unocode fonts.
Yep. If you just want the normal super/subscript, definitely just use the <sup> + <sub> instead. Then you could insert whatever numbers/letters/symbols you want and have it look consistent. Plus that method would work across all devices/fonts/programs.

Quote:
Originally Posted by pluma View Post
Specially with UTF-8 which it could take advantage of the many features it got.
Just because it is in UTF-8 doesn't mean that would be the most reliable way to represent it in your book. Many of the characters are just in there for backwards compatibility with older documents, or when dealing with purely Plain Text documents.

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:
Originally Posted by pluma View Post
Unbelivable!! That's not a practical format for humans to express in written form!! I think that's a step backwards from Egyptian hieroglyphics. C'mon in 2016, with an advanced staged of technology and have to write with that I think is plain retarded, undoing centuries of evolution. Whover came up with that standard should be fired for causing brain damage and waste of CPU cycles.
Do you have a better representation of Maths?

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.
Tex2002ans is offline   Reply With Quote
Old 12-05-2016, 05:18 PM   #12
pluma
Enthusiast
pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.pluma ought to be getting tired of karma fortunes by now.
 
Posts: 48
Karma: 854254
Join Date: Nov 2016
Device: none
Quote:
Originally Posted by Tex2002ans View Post
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 (æ) + [...].
How to check, in linux, that the font is indeed OpenType?

Can you reccomend a way to make sure the use OpenType in both latex/pdf and epub?

thanks
pluma is offline   Reply With Quote
Old 12-06-2016, 02:24 AM   #13
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by pluma View Post
Can you reccomend a way to make sure the use OpenType in both latex/pdf and epub?

thanks
Embed the font in the PDF and/or ePUB, if you are allowed (not all fonts allow it). By the way, the Symbola font is pretty complete with regards to Unicode.
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.
Toxaris is offline   Reply With Quote
Old 12-09-2016, 04:33 AM   #14
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by pluma View Post
How to check, in linux, that the font is indeed OpenType?
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:
Originally Posted by pluma View Post
Can you reccomend a way to make sure the use OpenType in both latex/pdf and epub?
The list of fonts that actually support OpenType Math is very small. Wikipedia lists a few:

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.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:15 PM.


MobileRead.com is a privately owned, operated and funded community.