>>>>> Andreas Hoenen <[EMAIL PROTECTED]> writes:

 >> stuff is hardcoded into the executable.  However, it'd be nice if
 >> `dblatex' would support overriding the base location of its
 >> components, much like, e. g., `lintian' allows it with either the
 >> `--root' command line option, or the `LINTIAN_ROOT' environment
 >> variable.

 >> I'm currently experimenting with Dblatex vs. UTF-8 output (for use
 >> with Lambda & Antomega) and I'm forced to create my own `dblatex'
 >> script in order to hack the Dblatex' files in my own (mostly
 >> lndir(8)) location, and that's somewhat inconvenient.

 > Hello,

 > we need to discuss this.  At the moment I don't exactly understand
 > which directory structure you have in mind and what files you are
 > trying to replace.  Could you give an example?

        Surely:

        * check (ensure) that the dblatex .deb is installed, e. g.:

$ dpkg -l dblatex 

        * create my own ``shadow'' for its source:

$ mkdir -v tmp/dblatex-hack-$(date -uI)-i 
mkdir: created directory `tmp/dblatex-hack-2008-03-17-i'
$ lndir /usr/share/dblatex/ tmp/dblatex-hack-$(date -uI)-i/ 
...
$ 

        * make my own modifications:

$ emacsclient -n tmp/dblatex-hack-2008-03-17-i/... 

        * test 'em:

$ DBLATEX_ROOT="$PWD"/tmp/dblatex-hack-2008-03-17-i dblatex ...

        * (repeat the last two steps 'till this day's goal is reached);

        * make a diff:

$ diff -drHuN /usr/share/dblatex/ tmp/dblatex-hack-2008-03-17-i/ \
      > dblatex-hack-2008-03-17-i.diff 
$ chmod =r dblatex-hack-2008-03-17-i.diff 
$ 

        * discard the private copy:

$ rm tmp/dblatex-hack-2008-03-17-i/ -rf 
$ 

        While it most probably may be done with downloading the source
        and experimenting with it (instead of `/usr/share/dblatex'), the
        way above is, I believe, the most easy way to start the hacking.

        It'd be even better to allow for search paths to be specified
        instead of a single base directory, so that one could:

$ cp /usr/share/dblatex/.../file.py .   # make a private copy
$ vim file.py                           # alter it
...
$ dblatex --py-search-path=. ...        # test the change
...
$ 

 > Some remarks:

 > - The debian packaging tries to integrate dblatex deeply into the
 > debian system, its main tasks are relocating directories in a way
 > that a debian user finds them at expected places [1] [2].  This
 > results in problems with parallel installations of e.g. a debian and
 > and a native dblatex: the native dblatex will use the TeX files of
 > the debian installation!  This repeatedly has led to strange effects.
 > Thus I'm very reluctant with dblatex files installed in parallel.

        The installation of the native package is certainly not the
        thing I wish to experiment with in the near future.  (I just
        lack enough time to invest into it.)

 > - As the simple wrapper script /usr/bin/dblatex is quite stable, you
 > could use dpkg-divert to install your own version.

        It'd be even easier to me to install it into "$HOME"/bin (as
        long as it's the prefix of my "$PATH".)  But I guess other users
        may benefit from `DBLATEX_ROOT' as well.

 > [1] http://bugs.debian.org/376388

 > [2] http://bugs.debian.org/395207



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to