Live data from Hacker News

Show HN: RinohType – A modern LaTeX in 6500 lines of Python

mos6581.org

91–100 of 104 posts

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#91
post #80
post #67

Earlier quoted context omitted.

I might want to use LuaTex, if I knew what it was. It seems they can't be bothered to actually say what it is in their website, in any of their links, or in the introduction chapter of their manual. I therefore take it that no-one who actually writes ever uses it.

Not sure if you're trolling, but luatex.org explains it right in the first paragraph: LuaTeX is an extended version of pdfTeX using Lua as an embedded scripting language. The LuaTeX projects main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.

No, I'm not trolling. I don't know what pdfTex is either. Why on earth are you telling me what a project does in terms of another project I'm not familiar with?!

Edit: that's what I meant by "none of their links", the pdfTex page doesn't say what it does either!

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#92

"There is no strict separation of content and style. This is mostly an issue for publishers that want to ensure a consistent style across articles in a journal. With LaTeX, academic authors can always reduce the margins or change the interline spacing to be able to squeeze in more half-truths." Does this ever happen?

People do it, although there are more elegant (and honest) means of squeezing space. I summarized some of them after having to do a drastic cut of a proposal at the last minute: http://bellm.org/blog/2013/02/24/making-space-in-latex-docum...

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#93
post #58

> It is worth pointing out the other gripes I have with (La)TeX at this point. I will probably regret this later (I have the impression TeXies can be quite fanatical) Probably. I applaud efforts to try to rethink typesetting, and this is clearly a substantial accomplishment. Tex is, however, an outstanding design, both in a number of of its aspects and as an overall design, and a lot of later effort has gone into rem…

Is there a source on the statement that Knuth worked as a consultant for MS Office?

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#94
post #86

The rendering of the test document is very strange in FF on RHEL 6 on Linux. Acrobat also gave me garbage for a few seconds and then somehow spontaneously figured it out. I'm skeptical of these sorts of enterprises, but I'm glad the author took the challenge and I look forward to seeing where it goes.

I've noticed these problems on Linux too... On Windows, The PDFs render correctly on SumatraPDF, Adobe Reader, PDF-XChange Reader and IIRC also Foxit PDF Reader. But I'm sure there's still a bug in my PDF font handing code :)

That’s probably due to a known issue in pdf engines improperly handling fonts. Even Adobe’s own InDesign 4’s built-in pdf engine was plagued with that bug. [1]

In the sample pdf, only the regular font gets messed up by affected pdf renderers (pdf.js in FF, …). That font is TeXGyreTermes-Regular, and it’s the only CID (composite) font. In the source, that font was an OpenType font (.otf), which, during pdf-creation, got converted into a CID double-byte font, resulting in messed-up Identity-H encoding. (CID double-byte fonts are really meant for huge Asian charset fonts, only.) Likely, the pdf engine used, wrongly assumes that all Unicode encoded fonts (.otf) contain huge Asian charsets, and thus converts them into CID.

I guess most newer pdf renderers know to handle the issue, while the renderer used in FF e.a. doesn’t. The quick fix, at pdf creation, is to avoid fonts being converted into CID at all.

[1] http://forums.adobe.com/message/1289456

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#95
post #93
post #58

> It is worth pointing out the other gripes I have with (La)TeX at this point. I will probably regret this later (I have the impression TeXies can be quite fanatical) Probably. I applaud efforts to try to rethink typesetting, and this is clearly a substantial accomplishment. Tex is, however, an outstanding design, both in a number of of its aspects and as an overall design, and a lot of later effort has gone into rem…

Is there a source on the statement that Knuth worked as a consultant for MS Office?

Murray Sargent said a bit about the meetings with Knuth in several posts in his Math in Office blog, the most interesting of which is http://blogs.msdn.com/b/murrays/archive/2006/11/15/lineservi...

The Tex-based algorithm for formula layout used from Office 2007 on is documented in http://www.ntg.nl/maps/38/03.pdf (some of those links have fallen to linkrot).

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#96
post #53

Since I'm working right now on a report generator using LaTeX, I was all excited until I hit this: "Because of the Unicode requirement, I opted to skip Python 2 and go with Python 3 which uses Unicode for all text strings." Really? Python2 is still extremely common, it's too bad I can't this now, if it's not backwards compatible.

> Python2 is still extremely common So is Python3. They are not mutually exclusive. Python3 is in Debian oldstable (released in 2011), Ubuntu 10.04 LTS, Fedora since version 13 (from 2010), and in openSuse since 11.2 (from 2009).

I didn't say they are mutually exclusive. I said I don't care about Python 3, I need Python 2 version :)

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#97
post #91
post #80

Earlier quoted context omitted.

Not sure if you're trolling, but luatex.org explains it right in the first paragraph: LuaTeX is an extended version of pdfTeX using Lua as an embedded scripting language. The LuaTeX projects main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.

No, I'm not trolling. I don't know what pdfTex is either. Why on earth are you telling me what a project does in terms of another project I'm not familiar with?! Edit: that's what I meant by "none of their links", the pdfTex page doesn't say what it does either!

Maybe it's not what you intended, but to me you seem to be proud of your ignorance about a piece of software that's part of computer science history. Instead of writing that comment, you could have learned something by reading about TeX on Wikipedia.

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#98
RinohType is interesting to me because I too am frustrated by TeX/LaTeX. I agree with others that RinohType isn't (yet) a "modern LaTeX". But we need more efforts like this (see for example the excellent Lout by Jeffrey H. Kingston).

First, let me make it clear that I'm a big big fan of Knuth and Lamport and I respect the amazing impact that TeX/LaTeX have had in the Math/Science/Engineering communities. They are clearly a lot smarter than I am, and I owe them a debt for their contributions to CS. I've read Knuth's original papers on Alpha-Beta search, LR-parsing, etc., I own almost all of his books, and I've studied the Art of Computer Programming in depth since the first editions.

TeX is an amazing feat of programming. I had a friend that was in the same fraternity as Knuth as a student. This friend was a great programmer and even he was in awe of Knuth's abilities as a programmer. Look at the history of TeX, the decisions and approaches that Knuth considered and undertook. It's absolutely amazing, and then he essentially gave it away, one of the first and most important Open Source projects!

But, please, can't we come up with a new replacement for LaTeX? By now, it should be obvious that there are only about 7 people in the world that really understand LaTeX/TeX (and I'm not one of them). Hang out on http://tex.stackexchange.com and see what I mean. I've used LaTeX for almost 30 years; it's the first tool I reach for when preparing a document. Thirty years of it is enough.

Now, I write my own styles (.sty files) and complex macros, but the experience isn't pleasant. I think it's here that something needs to be done. I've never been able to convince more than ten percent of the software engineers that have worked for me to use LaTeX. It's not that they don't like markup or programming. It's the mess caused by TeX's macro based extension language. This leads to less than helpful error messages, cryptic behavior, and is a barrier to anyone wishing to take advantage of the underlying power of TeX.

I don't think anyone will try to argue that the TeX macro system is so elegant and powerful or that I simply haven't spent enough time with it, but let me say this, I've programmed for 45 years and I've used macros plenty. I've written packages of macros running on IBM (big machine) assemblers, did assembly language real-time programming for years, implemented macro programming systems like Calvin Mooers Reactive Typewriter [1] and concatenative programming languages like FORTH. Nothing, to me, is more frustrating than trying to write a sophisticated LaTeX package. I've patched boot loaders from the front panel switches of mainframes that wouldn't boot, debugged real time programs containing thousands of lines of assembler, used C++ templates and Haskell types. All of this is easier than writing a fancy new TeX macro. I don't like writing as much as programming, why do the tools have to make it even harder?

Fundamentally, I think that using macros is the wrong way to write extensions and customizations in LaTeX/TeX, the abstractions used to construct anything complex leak too many implementation details. For some of my projects I've found it easier to write custom filters in Python that preprocess input files into plain LaTeX. This observation isn't unique to Latex [2].

LaTeX3 and LuaTeX kept me interested in TeX; I hoped that they would make programming TeX packages and customization easier. Unfortunately, I don't have enough time left to wait for them; they move at a glacial pace and are essentially indistinguishable from abandon-ware. As those 7 guys that understand TeX move on to get real jobs, these projects falter and don't go anywhere. The LuaTeX web-site has been stuck on version 0.6 for thirty months.

Please, can't the community come up with something? Or point me towards a project with a license that I could contribute to.

[1] TRAC (the reactive typewriter system) is a macro based programming system, described in Computer Lib/Dream Machines a 1974 book by Ted Nelson and by its inventor Mooers in the CACM, Volume 9 Issue 3, March 1966 Pages 215-219.

[2] http://scienceblogs.com/goodmath/2007/12/17/macros-why-theyr...

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#99
post #83

I looked at the sample output ( http://www.mos6581.org/files/intro_template.pdf ) and is it just me or does the vertical spacing seem off? (for example, look at the tables and how the text goes right up to kiss the horizontal bars).

Note that this is a WIP version; you should not judge RinohType on the basis of the example documents for now. I hope you'll understand that at this point I'm focusing on functionality, not on style. The table rendering got messed up when I rewrote the line spacing code. Fixing the table rendering would just require an adjustment of the table style definition.

"you should not judge RinohType on the basis of the example documents for now. I hope you'll understand that at this point I'm focusing on functionality, not on style."

Then please be more honest. It's not "A modern LaTeX in 6500 lines of Python" -- it's 6500 lines of Python implementing a typesetting language with vastly inferior to TeX, or even Microsoft Word. It may have a syntax more comfortable to Python or Ruby programmers. Just say what you've done.

Re: Show HN: RinohType – A modern LaTeX in 6500 lines of Python

#100
post #91
post #80

Earlier quoted context omitted.

Not sure if you're trolling, but luatex.org explains it right in the first paragraph: LuaTeX is an extended version of pdfTeX using Lua as an embedded scripting language. The LuaTeX projects main objective is to provide an open and configurable variant of TeX while at the same time offering downward compatibility.

No, I'm not trolling. I don't know what pdfTex is either. Why on earth are you telling me what a project does in terms of another project I'm not familiar with?! Edit: that's what I meant by "none of their links", the pdfTex page doesn't say what it does either!

Because people do not care about their TeX interpreter. Today, nearly every LaTeX writer uses pdfTex. If they switch to luaTex nothing changes, because luaTeX is (intended to be) fully backwards compatible. If you start writing your own packages, then luaTex becomes interesting.
Post reply on HN