Document ClassesProblems with seemingly unformatted Greek text

Information and discussion about specific document classes and how to create your own document classes.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Problems with seemingly unformatted Greek text

Post by frabjous »

Surely there are more efficient means for creating UTF-8 Greek than inserting the Babel codes and compiling to PDF and then copying and pasting! It wouldn't surprise me if software had been developed for this purpose alone.

But even if not, if using the character map is too much work, surely you could use something like AutoKey or AutoHotKey to "correct" certain sequences to their Greek counterparts. Editors like vim or emacs could be programmed to do the substitutions as you typed. (Heck, you could probably do the same with something like MS Word's autocorrect feature.)

Last but not least, try compiling the LaTeX source to HTML using, e.g., htlatex (from TeX4ht; you may already have this installed as part of your LaTeX distribution) or latex2html; it should output html you could copy and paste to create UTF-8 Greek, and it wouldn't have the same linefeed problem.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

yakiv
Posts: 10
Joined: Fri Oct 01, 2010 2:02 pm

Problems with seemingly unformatted Greek text

Post by yakiv »

Thank you! Based on your suggestion, I found the following page:

http://tug.org/applications/tex4ht/mn-commands.html

I have been able to use, through command-line, the following, and produce an HTML file:

Code: Select all

‘xhlatex filename "xhtml,uni-html4" " -cunihtf"’
It generates over 300,000 lines in less than a minute.
Post Reply