Re: Pygments-based syntax highlighting preprocessor

2024-07-31 Thread Robin Haberkorn
Hello Bento! On Wed, 31 Jul 2024 15:19:53 -0300 Bento Borges Schirmer wrote: > I peeked around your repository. I noticed the hyperlinks to CSNOBOL4 > are broken. what about SNOBOL4? is it cool? I understand it acts as a > filter? I updated the links. It seems to live here nowadays: http://www.

Pygments-based syntax highlighting preprocessor

2024-07-31 Thread Robin Haberkorn
Dear groffers, as one of the things coming out of my master thesis (written completely in ms with Groff), here is a small preprocessor for syntax highlighting code blocks based on Pygments: https://github.com/rhaberkorn/groff-tools#highlight-python btw. I also still have Scintilla/Lexilla syntax

Re: Re: PDF outline not capturing Cyrillic text

2024-02-06 Thread Robin Haberkorn
On Tue, Feb 06, 2024 at 01:39:51PM +, Deri wrote: > Hi Robin, > > The current gropdf (in the master branch) does support UTF-16BE for pdf > outlines (see attached pdf), but Branden has not released the other parts to > make it work! If you can compile and install the current git the applying

Re: PDF outline not capturing Cyrillic text

2024-02-03 Thread Robin Haberkorn
Regarding cyrillic characters in PDF outlines, I think I got a few insights today. It turns out that the pdfmarks in the postscript code are "text strings" according to the PDF specs, that is either a PDFDocEncoding or UTF-16BE with a leading byte-order marker (cf. PDF Reference 1.7). A PDFDocEnco

ms/mm page margins too large

2023-06-23 Thread Robin Haberkorn
Hello! I was trying to set up an ms-document with small page margins (see attachment), but I don't seem to get below a certain limit (especially on the bottom side). In one-column mode, the bottom border is a bit smaller, but still larger than 1cm. I also cannot explain the spacing introduced by t

Re: PDF outline not capturing Cyrillic text

2023-06-23 Thread Robin Haberkorn
Hello Peter, I am also now stumbling across Cyrillc-related issues with pdfmark. I am using ms for the time being. The bug also affects autogenerating link texts given via `.pdfhref L`. In the most simple case, preconv will turn your Cyrillic characters into escapes which are apparently not furthe

Re: Questions concerning hyphenation patterns for non-Latin languages, e.g. Russian

2023-04-26 Thread Robin Haberkorn
25.04.23 19:51, G. Branden Robinson пишет: While I'm pontificating I'll opine that I'm not a huge fan of C++ as a language, but I have found with groff that, given discipline, and by maintaining a clear view of its roots in C (_also_ not my favorite language--but one alienati

Re: neatroff for Russian. (Was: Questions concerning hyphenation patterns for non-Latin languages, e.g. Russian)

2023-04-26 Thread Robin Haberkorn
Hello! I can confirm that Neatroff (and Heirloom Troff) works well for typesetting Russian texts including hyphenation. BUT, I found them unsuitable for complex scientific texts as their ms macros are buggy and tbl is somewhat limited. Regarding Neatroff, I found that its hyperlinking capabili

Re: [groff] Accented Cyrillic characters

2018-08-02 Thread Robin Haberkorn
Hello Ralph! I see! Groff seems to combine composites to single code points if possible, probably in order to better support terminals and/or software that cannot themselves combine them. Makes sense. But for the rest of glyphs, it should IMHO a) make sure that accentuation glyphs have a zero-widt

[groff] Accented Cyrillic characters

2018-08-01 Thread Robin Haberkorn
Hello! I'm working on a small Russian offline dictionary that formats the entries of words into Troff/Man pages, so you can view them in the terminal. There is a small problem when trying to format accented Cyrillic characters. Accents are commonly used in Russian to highlight word stress by plac

[Groff] gpresent (presentation macros) forked

2017-02-22 Thread Robin Haberkorn
Hi, just wanted to inform you that I forked the gpresent macros by Bob Diertens: https://github.com/rhaberkorn/gpresent I did this out of sheer necessity, as I needed to prepare a few presentations. This fork contains a hard-to-find patch, so it runs with recent versions of Groff and adds the TI

[Groff] [mom][patch] multipage boxed tables

2013-09-13 Thread Robin Haberkorn
Dear groffers, I ported the ms package's tbl macros, specifically the multipage boxed table support, to Mom. It appears to work fine so far, but I'm neither a groff nor a -ms guru yet. There are possibly some bugs that could be easily avoided by someone who is more familiar with the ms macros. Tha

[Groff] [mom][patch] FLOAT bug fixes

2013-09-12 Thread Robin Haberkorn
Dear groffers, I have found and fixed two severe mom bugs in the FLOAT macro. See attachment - it's a patch against CVS HEAD. 1) if a "FLOAT FORCE" block fits on the current page, the register #FORCE is not removed/reset. If it does not fit on the page, a NEWPAGE is emitted and #FORCE is removed.

[Groff] [mom][bug][patch] NUMBER_LINES and tbl

2013-08-27 Thread Robin Haberkorn
Hi everyone, found and fixed another bug in the mom macros. Her handling of NUMBER_LINES if tbl is used was buggy. If you used NUMBER_LINES to turn on line numbering, turned it off and then used tbl tables, the table was numbered. Naturally if you resumed line numbering after the table, line numbe

Re: [Groff] refer, mom and inline references

2013-08-13 Thread Robin Haberkorn
Hello Peter, 2013/8/11 Peter Schaffter : > ... > At the top of your file, > > .R1 > label "(A.n|Q) ', ' D.y" > bracket-label " (" ")\c" "" > join-authors ", and " ", " ", and " > reverse A1 > sort A1Q1T1B1E1 > database > .R2 > > With this setup, references entered with

Re: [Groff] refer, mom and inline references

2013-08-09 Thread Robin Haberkorn
2013/8/9 jjbrioist : > Le vendredi 09 août 2013 à 17:35 +0200, Robin Haberkorn a écrit : > Hello Robin, > > I was facing the same issue as you, although I am using -ms for the time. > I use the -S option to get inline references. > > Assume you have the following entry i

[Groff] quick and dirty preprocessors: htbl.tes

2013-08-09 Thread Robin Haberkorn
Hi, one thing I like about groff/troff is the ability to quickly write preprocessors extending troff. I wrote one as part of SciTECO -- in the SciTECO language: https://github.com/rhaberkorn/sciteco/blob/master/doc/htbl.tes (Note: contains control codes not properly displayed by Github) It's a "dr

[Groff] refer, mom and inline references

2013-08-09 Thread Robin Haberkorn
Hello, I know a lot has been written on this mailing list about refer and its mom integration. However, I still don't quite get it. Currently I'm writing my bachelor thesis in groff -mom. It was relatively easy to imitate the LaTex template they were providing, including Computer Modern fonts and