libera/#maemo/ Friday, 2019-03-08

DocScrutinizer05chem|st: sorry, no idea. Isn't sicelo one of council? or is board even sth different than council? no idea, I only know the wiki page as linked in topic hasn't seen updates since afes02:15
DocScrutinizer05is wiki.maemo.org down?02:24
DocScrutinizer05aah nope, just slow02:24
DocScrutinizer05council, Current: January 2018 - (current):  Eetu Kahelin (eekkelund)      Jussi Ohenoja (juiceme)       Timo Könnecke (mosen)02:26
DocScrutinizer05juiceme_: do you know about status of coucil?02:27
ceenei'm just going to use you guys to rant a bit10:58
ceeneI hate latex with the same passion I love it10:58
ceeneI've spent 2 hours to find the issue that was breaking my document, and it was an unescaped _ in text10:58
bencoh:)11:12
ceeneand it's not even fixed yet11:19
ceenei'm gonna end up rewriting this shit on word11:19
bencohaww, noo :/11:21
ceenei have this thing to document a few things at work11:21
ceeneand some of the sections are autogenerated from code11:21
ceeneit's pretty and automatic11:21
ceenebut since a couple of days it doesn't work11:22
ceeneand I don't know fking why11:22
ceenethere's no reason, no reasonable error, no explanation11:22
Maxdamantusgit bisect?11:31
ceeneI already know which is the thing that makes it fail11:32
ceenebut I didn't know the exact underlying reason11:33
ceenei think it's the underscores11:33
* Maxdamantus has wondered when TeX will be replaced.11:34
ceenei think it's pretty when it works11:35
ceenebut getting it to really work is a pain in the ass11:35
ceenei don't think it's worth the effort11:35
MaxdamantusI think the basic principle behind TeX is desirable: having a programming system for concisely creating printable documents, where various stylistic things are just handled by normal abstractions you have in programming (eg, functions)11:37
MaxdamantusThe way it works just happens to be essentially magical.11:37
Maxdamantusbecause it was designed a long time ago, when a lot of programming concepts were either still being developed, or were just difficult to implement.11:39
ceenethe language is ugly, you always need to load and undefined number of packages, but sometimes they conflict one with the other or must be included in a very specific order, but that order may conflict with some other package you need11:39
Maxdamantusso instead of figuring out how to express everything cleanly using something like a lazy programming language that just fundamentally does function application (which is basically all you need), it's based on macro expansion, which is very hard to reason about.11:40
Maxdamantusreally, all you need is some usable syntax for expressing function application, function expressions, and variable binding, and you basically have the same level of power as the TeX language.11:41
Maxdamantusjust need to then provide some typesetting primitives (which TeX does in its own system), and some higher-level typesetting library (like LaTeX), and some module system for referring to third-party libraries.11:42
ceenemost of the time you don't really need something like that11:43
ceeneyou only need a sensible way to write a table11:43
MaxdamantusYes, but unless you have "make a table" as a primitive operation, you need some sort of abstraction to do that.11:43
Maxdamantusand having "make a table" as a primitive operation would be a very inflexible system.11:44
ceeneyep, but latex/tex is supposedly about how you can separate content from presentation, but that is basically false11:44
Maxdamantussince practically everything requires special support from the base system.11:44
ceenegiven that you need to splatter all your text with arcane commands11:44
MaxdamantusHaving it without the ability to write abstractions is basically like writing TeX, but without being able to write things like \def11:46
MaxdamantusPractically noone writes plain TeX, and the ones that do will probably be using \def11:47
KotCzarnyso, basically html+css but with more up-in-the-ass granularity?11:47
MaxdamantusLaTeX is just that common library on top of TeX, which depends on being able to write abstractions.11:48
KotCzarnywell, xml+css11:48
ceenewell, yes, that seems more sensible than latex to be honest11:48
ceenemost of the time you want to write paragraph after paragraph of text, why the hell do I have to add \paragraph{} ?11:48
ceenemarkdown is even better11:48
ceenebecause the inevitable commands are basically non code, so it doesn't interfere with the textual visualization11:49
KotCzarnylast time i had to create a folder out of products, i just created html that i later converted to pdf and set it to printing company11:49
KotCzarnyso basically: sql+files -> php -> html -> pdf -> printing11:49
MaxdamantusSo PHP is where you get your abstraction from.11:50
MaxdamantusI don't think HTML/CSS alone is sufficient for replacing LaTeX as it's used, eg, in academia.11:50
KotCzarnystill, it was enough, and flexible at that11:51
KotCzarnyany changes were easy to add and were seen instantly11:51
MaxdamantusRight, it's very flexible, because you've got an actual programming language in the pipeline: PHP11:51
KotCzarnysome say php isnt programming language11:52
KotCzarny;)11:52
KotCzarnybut preprocessor11:52
MaxdamantusSo you're fully capable of separating the "content" from the "display"11:52
Maxdamantusie, you're not having to write something like "indent 5px" at the beginning of every paragraph.11:52
KotCzarnythat's css's work11:53
Maxdamantusor denote classes that effectively say the same thing.11:53
Maxdamantusanyway, here's something I was working on at one point (I'm not the primary author), very dubious of trying to write this in pure HTML/CSS: https://maxdamantus.eu.org/42.pdf11:55
KotCzarnyimo it's very doable with html+css11:56
MaxdamantusIt's obviously *do*able11:57
Maxdamantusbut is it maintainable?11:57
KotCzarnyyes11:57
KotCzarnyif you throw php at it too11:57
KotCzarnyto generate things in proper places11:57
MaxdamantusYou can obviously write Linux in x86 assembly11:57
Maxdamantusbut is it maintainable?11:57
KotCzarnybut yes, i think you can write it quite cleanly in pure html+css11:57
MaxdamantusSure, if you use PHP instead of LaTeX, you can do whatever you want with it.11:57
MaxdamantusYou can write a layout system in PHP that just figures out where every character goes.11:58
Maxdamantusyou could even just write a font renderer in PHP, so you don't have to rely on font handling in the HTML being accurate.11:58
KotCzarnyany preprocessing makes it much easier. that i agree11:58
ceenethe thing is that latex doesn't really does a good job in the end11:59
Maxdamantusbut for all of that, you need libraries, so you need to either write it yourself, or rely on someone else having written it. That's the part that you actually get with LaTeX: someone else has already written a bunch of reusable layout combinators.11:59
KotCzarnybtw. what's that 'FOO' on next-to-last page?11:59
KotCzarnysomething left behind?11:59
ceenehttps://i.imgur.com/JnpCI6d.png11:59
MaxdamantusCan't remember. That whole document is a WIP.11:59
ceenesolve this11:59
KotCzarnyor spacer put there so big cells go on next page11:59
Maxdamantuscan probably look at it in git11:59
KotCzarnynah, got own work to do, eh12:01
ceenewhy is that <we over the border of the box?12:01
Maxdamantusceene: because we weren't caring about exact positioning issues at the time.12:02
ceenewhy do you have to manually tweak that? is it because < is somehow a special character?12:02
ceenebut that's the thing, you should have to care about that12:02
ceenes/should have/shouldn't have/12:02
infobotceene meant: but that's the thing, you shouldn't have to care about that12:02
Maxdamantusceene: the document is mostly defined semantically, positioning issues can be fixed by mostly just fixing the combinators.12:02
Maxdamantusceene: it's really not important for a WIP.12:02
Maxdamantusceene: should the document really be purple?12:02
KotCzarny:)12:02
KotCzarny80/20 rule12:03
KotCzarny80% of work takes 20% of time. remaining 20% takes the remaining 80% of time12:03
KotCzarny'hey, can you put that dot 3px higher and make it glow?'12:03
ceeneyou know what I mean, the presentation is wrong and it's not your fault that latex somehow decided to move that <we a few pixels to the left12:04
ceeneand thw whole document is astonishing, but why does it fail in something so trivial?12:04
Maxdamantusceene: because with power comes responsibility.12:06
ceeneyou're justifying a bug12:07
Maxdamantusceene: if the system gives you the ability to have fine-grained control over layout (instead of saying, eg, "I'll put whatever you output inside a box which is strictly bigger"), then you have to be careful about things like that.12:07
ceenethat whole string fits in that box12:07
KotCzarnyi remember when i was looking for work, trying some big newspaper company12:07
ceenethe text above and below is alineated12:08
KotCzarnythey did their webpages PIXEL EXACT12:08
KotCzarnywith few supported browsers and html+css12:08
KotCzarnyand css was primitive back then12:08
ceenebut that line, that doesn't begin with a math character somehow is broken, and there's no reason for it to happen12:08
KotCzarnyand ie6 still ruling the world12:08
KotCzarnyluckily i didnt get that job12:08
ceenealineated doesn't exist in english?12:09
ceenelol12:09
ceenealigned12:09
ceenei'm an idiot12:09
KotCzarny:)12:09
ceenethat whole string fits in that box, the text above and below is aligned, but that line that doesn't begin with a math character somehow is broken and there's no reason for it to happen12:10
ceenemuch better12:10
MaxdamantusThe actual reason is because there's a random `\hspace{-2ex}` in front of it.12:12
KotCzarny:)12:12
ceenelol12:12
ceenemaybe this time it's just that12:12
Maxdamantusfor the most part, the TeX code is free of positioning information, that's one of the few exceptions.12:12
KotCzarnywhich means it was a workaround for something else that didnt quite get bug matching rule set12:12
ceenebut i'm really fed up with that kind of thing that happens just because12:12
Maxdamantus\produzione{\XvP\!\!}{ \Xt{}{\x}{\T}{ \valP } }{}\\12:15
Maxdamantus\seguitoProduzione{ \hspace{-2ex} \mbox{<we write just $\val$ and $\vs$ when $\p$ is clear from the context>} \hspace{-10ex} }{}\\12:15
MaxdamantusThat first line corresponds to the production rule just above the positioning error pointed to.12:16
Maxdamantus(the actual source code has additional newlines/indentation, so it's a bit easier to read than what I posted here)12:16
Maxdamantus(though I often did get annoyed at the main author's occasional indentation inconsistency (occurs in Java code, not just TeX))12:17
Maxdamantushe's also Italian, so the TeX is partly in Italian.12:17
MaxdamantusI think the occasional negative spacing is just to force stuff to fit onto one line, but since the document was being semantically updated (not just updated to improve styling), those negative space hacks might've become inconsintent. They should obviously be fixed at some point.12:20
ceenei'm reading this http://www.danielallington.net/2016/09/the-latex-fetish/12:28
Maxdamantusand as for the "FOO", apparently one of the source files was just replaced entirely with the content "FOO"12:29
ceenewell, that's obvious, I thought it was yet to be written12:30
Maxdamantuspresumably because the content was moved to a different place, and I guess he didn't feel like removing/unreferencing that file at the time.12:30
ceeneneither that nor the guy writing italian is latex' fault :)12:30
KotCzarnyor that didnt feel like fixing broken page layout12:31
KotCzarny;)12:31

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!