ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: [OT] Twenty Questions for DEK
Date: Wed, 21 May 2014 10:22:40 +0200	[thread overview]
Message-ID: <537C6250.6030002@wxs.nl> (raw)
In-Reply-To: <20140521061646.GA5498@acheron>

On 5/21/2014 8:16 AM, Philipp Gesang wrote:
> http://www.informit.com/articles/article.aspx?p=2213858&WT.mc_id=Author_Knuth_20Questions
>
> Quote:
>
>     “The people at MSP wrote special software that converts my TeX
>      source text into suitable input to other software that
>      creates pdf files.”
>
> I wonder why using a TeX engine capable of producing PDF output
> directly wasn’t an option.

Ok, I think this is what sums it:

quote: "My principal goal was to make the books easily searchable—and 
that's a much more challenging problem than it seems, if you want to do 
it right. Secondarily, I wanted to let readers easily click on the 
number of any exercise or equation or illustration or table or 
algorithm, etc., and to jump to that exercise; also to jump readily 
between an exercise and its answer."

(1) The interactive bit is rather trivial: cross references, tocs and 
indices, linking answers and questions, are already generated so there 
one only needs to add some hyperlinking code (maybe some additional 
housekeeping if backlinks or in the case of indices linked backlinks are 
supported but it is probably kept simple in order not to spoil the look 
and feel.)

(2) The searching might be more complex as traditional 8 bit fonts are 
used in plain tex, so there is some tounicode magic needed (not too hard 
either, mostly housekeeping and careful checking) ... math can be 
somewhat complex there as not all is copyable, given that it's needed, 
but on the other hand, searching is also non trivial: does a reader 
search for "unicode symbol math italic i" or for just an "i"? Copying 
math demands a proper tounicode, but I bet no viewer can search for both 
kind of tagging at the same time (math alphabet stuff). Searching 
regular text of course is no issue.

(3) The question is: has more been added than just basic access as in 
books? Crosslinking books and so?

So, no rocket science, mostly careful keeping the original (not 
interfering with breaks and so) so that is probably where most of the 
work went into. If pdftex was used, one thing to keep in mind is that 
adding whatsits can interfere sometimes. This can be avoided by luatex 
but then one has to accept the fact that the output can differ (no lig 
recomposition), although that can be checked by diffing pdf's and making 
local exceptions. A nice challenge: kind of making an electronic 
facsimile i.e. don't touch (spoil) the original.

Hans

ps. An interesting audience, those asking the questions.

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      parent reply	other threads:[~2014-05-21  8:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21  6:16 Philipp Gesang
2014-05-21  7:54 ` Hans Hagen
2014-05-23 14:27   ` Thomas A. Schmitz
2014-05-23 17:11     ` Hans Hagen
2014-05-21  8:04 ` Hans Hagen
2014-05-21  8:22 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537C6250.6030002@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).