more ramblings of a retired teacher
commenting (maybe ranting) on education - even my own
Categories:

Archives:
Meta:
November 2024
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
252627282930  
09/06/14
Pandoc to HTML
Filed under: General
Posted by: Algot @ 12:50 pm

For a while, I’ve been puzzled by the failure of pandoc to produce accented characters correctly in HTML output.

More research may have found the answer to bad html conversion of accented characters:
https://github.com/jgm/pandoc/issues/844

By adding the –ascii option to my pandoc command, the html contains the correct accents.

(Sorry that the display of coding is ugly on this blog…no control over the layout to cure the problem.)

pandoc --ascii -t html5 -o 00test.html 20140906.md
	
From the pandoc README file:
--ascii
    Use only ascii characters in output. Currently supported only for HTML output
 (which uses numerical entities  instead of UTF-8 when this option is selected)
 That means the html conversion uses littérateur
to show the é as it should

Kubuntu Compose Key

Of course, we need an easy way to type the accents in the first place. The “compose” key is it. Compose+accent then the letter to accent

By default, the compose key isn’t set. Of course, knowing the
difference between the meta key and the compose key definitions comes
first. The meta key is the left window key by default.

Internet search to the rescue:
https://wiki.kubuntu.org/ComposeKey#Typing_Macrons.2C_Umlauts.2C_Accents.2C_…

The compose key is not set at the keyboard shortcuts. Instead, it is in the keyboard layout section of system settings. System Settings > Keyboard settings > Advanced Configure > keyboard options > Position of compose key > Left Win
(my choice, so it is like Windows and, therefore, easier to remember). I
think I must have set this before on earlier computers.

Hoo Boy! Two solutions in one day. The “learn something new” has been good to me today.

Comments are closed.