« first day (1831 days earlier)      last day (3095 days later) » 

12:13 AM
Sledgehammer concerto on air, time to go to bed. :)
 
 
7 hours later…
6:53 AM
Good maen
 
 
2 hours later…
8:48 AM
@ChristianHupfer Good morning!
 
9:13 AM
@egreg Good morning... sorry, I was away from my computer
 
 
2 hours later…
11:03 AM
@DavidCarlisle: I corrected the statement in my answer
 
11:29 AM
@JosephWright this a typical day at the office for you? vvv
@ChristianHupfer I suppose I'd better go back and vote then:-)
@ChristianHupfer Werner has closed it anyway:-)
 
@DavidCarlisle Naughty @Werner ;-)
 
@DavidCarlisle :-)
 
 
2 hours later…
1:23 PM
If I would get a dollar for each unclear question I answered I would have... \approx 200 dollars :-(
 
@ArthurReutenauer do you understand this?
0
Q: Order of words when using \text disturbed by using polyglossia with rtl language?

Moritz FirschingWhen having \setotherlanguage{hebrew} active, then even in an english environment it reverses the order of words in a \text{} for a math environment. Here is a minimal working example of this behaviour. \documentclass{minimal} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{polyglossi...

 
@DavidCarlisle It's bidi, not polyglossia
 
yo'
TUGboat has arrived! Yay!
2
 
@ChristianHupfer If I get a dollar for every time I get distracted, I would... oooh look, a dollar! :)
8
 
@egreg ah.
Compare an engineering drawing made with latex to the output of a typical CAD application. — David Carlisle 1 min ago
 
1:37 PM
@PauloCereda ... have a billion of dollars, I know :D
 
@DavidCarlisle Here's it
\ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine]
\def\textdef@#1#2#3{\hbox{{%
                    \everymath{#1}%
                    \let\f@size#2\selectfont
                    \if@Latin\else\beginR\fi#3\if@Latin\else\endR\fi}}}
\endinput
But \if@Latin is false at the call.
 
yo'
And the logo looks beautifully on the grey cover!
 
@egreg edited answer, thanks:-)
 
@DavidCarlisle Afraid I can’t do much on the Polyglossia end, as Enrico says. This is an issue with bidi.
 
@ArthurReutenauer yep, you are spared, sorry for blaming you:-)
 
1:48 PM
@DavidCarlisle No worries :-)
 
Can you not do strikeout on the main site?
 
@DavidCarlisle Probably using HTML
 
@JosephWright too much trouble, I just deleted the words instead.
 
@ArthurReutenauer The problem is that \if@Latin is never set to true. I guess it should be called \if@LTR and that left-to-right languages should set it to true and right-to-left ones to false. Where this should be done is a more general question: how to persuade Vafa to cooperate?
 
2:00 PM
@egreg Your guess is as good as mine. The other day he blamed me for not fixing issues he filed with Polyglossia, that would be best addressed in bidi. I actually have no idea what to do about this kind of situations.
 
@ArthurReutenauer Yes, I saw the three identical comments. The answer should be: “Why don't you fix the bugs in bidi to begin with?”
 
@yo' ah <strike>
 
@egreg I was going to say something sarcastic, but I gave up. There’s not enough time in the world to spend on that, and I don’t have it in me to pursue it with the same kind of caustic energy he puts into it.
 
@ArthurReutenauer As you are here, can I ask a quick question about hyphenation and ConTeXt?
 
@egreg You’ll note that the bugs were originally reported by an account that has now been deleted (“ghost”) – that was him too of course. Even if he wasn’t temperamental it would be very hard to make any real progress on these issues since he never follows up on his own requests.
@JosephWright Sure :-) Not sure if I’ll be able to answer them, but well ...
 
2:09 PM
@ArthurReutenauer The hyphenation patterns for plain and LaTeX2e are set up using the babel interface. There's a comment somewhere saying ConTeXt has it's own language interface. Does it use the same patterns as plain/2e, and if so does it use the same language ID values (and how are they kept in sync)?
 
@JosephWright Oh, this I know the answers too :-) Unfortunately ...
ConTeXt uses a copy of the patterns for hyph-utf8 with its own language codes that are specific to ConTeXt – basically, using whatever codes Hans decided to use when he was adding languages.
They’re kept in sync by Hans, I don’t know how often and exactly how he does it.
 
@ArthurReutenauer Hmm
@ArthurReutenauer Makes some sense (though not as much as I'd hoped)
 
@JosephWright ;-)
 
@JosephWright standard context answer:-)
 
@ArthurReutenauer Reason for question: I'm wondering about pattern loading for LaTeX3. The current hyph-utf8 stuff is probably not directly suitable but obviously the patterns themselves are. I was hoping there might heave been a 'name = number' mapping used by plain, LaTeX2 and ConTeXt to construct the relevant loaders. Seems I'll have to roll my own.
 
2:16 PM
@JosephWright I don’t think I’m unfair to Hans when I say that he has no interest in established standards and will never follow them just for the sake of following standards.
@DavidCarlisle Yes, I quite like it too :-)
 
@ArthurReutenauer That sounds about right [see upcoming LuaTeX changes, for example :-)]
@ArthurReutenauer I was thinking more that it would not have been too complex to write a simple file with the number mapping and then script from that to the loaders such that the numbers would always be the same across all formats, even if the loaders themselves vary.
@ArthurReutenauer I guess my current plan is to do something like Hans then, except keeping the order strictly the same as 2e
 
@ArthurReutenauer clearly "whatever codes Hans decided" is a suboptimal policy compared with the new clearly more functional LaTeX3 policy of "whatever codes Joseph decided"
 
@JosephWright But he’s sensitive to the need for interoperability and stability. The only real question is where to set the bar for backward compatibility. Hans is a pragmatist, to sum up.
@DavidCarlisle Ha ha :-)
 
yo'
What I write the most when grading math exams? A big red question mark over the whole solution, and a small red zero in the grades table :-(
 
@JosephWright Wait, what numbers do you mean? I had thought the numbers in the \language register, but that can’t be what you mean since that depends on language.dat
 
2:22 PM
@ArthurReutenauer That's exactly what I mean: does ConTeXt keep the same numbers?
@ArthurReutenauer ``language.dat` doesn't actually specify them and has what looks like tricky stuff
 
@JosephWright No, but neither does LaTeX. These numbers are based on the order in which the languages are defined in language.dat and are completely configurable.
@JosephWright It does, indirectly. The actual numbers are assigned by hyphen.cfg that comes with Babel, and essentially does it sequentially.
 
@ArthurReutenauer I have to say I assumed that new languages are always added at the end so the numbers for each language are fixed
 
@JosephWright Off the top of my head I can’t remember if aliases are assigned their own numbers, but I think so.
@JosephWright Hahaha >:->
 
@ArthurReutenauer OK, that makes life a bit harder: I'll have to think about it
 
@JosephWright the original idea of language.dat was that it was a site configuration and the numbers would vary (of course since tex is big enough usually to simply load all the languages I guess it's more standardised now, but relying on the numbers would be bad wouldn't it?
 
2:26 PM
@JosephWright Of course not. language.dat is ultimately under the control of the user (via some configuration mechanism in TeX Live); it’s usually ordered alphabetically with the exception that english, pointing to hyphen.tex, has to always be first by policy.
@JosephWright So you can’t rely on anything, except that \language0 will be “english” and will use the file hyphen.tex by Knuth et al.
 
@DavidCarlisle Primary key
 
@JosephWright ?
 
@DavidCarlisle The primary key for the database of languages would normally be a serial number rather than the language name, I'd expect
 
@JosephWright That’s the wrong way to look at it. The identifier is the alphabetical string; the numbers are just a convenience for TeX to use the \language primitive.
 
@JosephWright what @ArthurReutenauer said.
 
2:28 PM
@ArthurReutenauer I guess I look at this the other way around :-) I'd have a TUG-maintained list of languages with the number as the primary key
@ArthurReutenauer, @DavidCarlisle Makes life very tricky moving between systems, then :-(
 
@JosephWright but \language are allocated like boxes \newlanguage just associates the next free slot, you are not supposed to care (or rely) on what slot that is.
 
@JosephWright If you wanted to overhaul hyphen.cfg that would certainly be welcome; I suppose that formally it’s under the responsibility or Javier, but I don’t think he has any plan for it.
 
@JosephWright no more than count register numbers changing?
 
@JosephWright We’ve never done that and I don’t think that’s the way to go. I’m not aware of any project that actually numbers language (other than as an expedient).
 
@DavidCarlisle I see languages a bit differently (counters have no meaning outside of TeX, languages do)
 
2:31 PM
Very much so.
 
@DavidCarlisle, @ArthurReutenauer Anyway, what I was originally wondering was whether for the same TeX system if ConTeXt followed the same allocation as LaTeX2e/plain
 
@JosephWright there could in principle be more than 256 patterns , so having a fixed number would be bad as you have to choose an arbitrary subset of them and number that 0-255
 
@ArthurReutenauer Not going to touch that!
 
@JosephWright But remembers that “languages” at this level are just sets of hyphenation patterns; they’re not mapped to actual languages (whatever that could be) and they actually make even less sense than other registers, potentially.
 
@ArthurReutenauer This is true
 
2:33 PM
@JosephWright If you mean for \language, it has something similar, yes.
 
@ArthurReutenauer, @DavidCarlisle Probably I can arrange to parse language.dat to get to where I think I want to (it's mainly a question of picking up the language name and the identifier stub, then handling a few special cases)
 
@JosephWright But what do you want to do differently than at the moment?
 
@ArthurReutenauer 1) Detect engine based on the fact we have an engine test rather than some heuristics 2) Allow for the fact that LaTeX3 as a format moves all of the primitives out of the way 3) Allow for the fact probably only T1 and UTF-8 will be allowed
@ArthurReutenauer 4) Allow for the fact that it's possible that LaTeX3 won't search the generic tree (as the primitives get moved)
@ArthurReutenauer All 'up in the air' but I'm exploring things
@DavidCarlisle Doubtless has a view ('oh no, he's at it again' or something)
 
@JosephWright I was writing something similar but deleted as I'd guessed you were writing:-) Not requiring the 2e codebase for the latex3 format mode implies not using babel so you have to do something more or less new to load the patterns. (even if it ends up being the same except with _ and : added to command names.)
 
@JosephWright What @DavidCarlisle said. You are saying, between the lines, that you want to reimplement the relevant parts of hyphen.cfg
@JosephWright I’m happy to continue some other time as I’ve had issues with hyphen.cfg myself (when porting Polyglossia to LuaTeX, for example), but I really need to get back to work now.
 
2:47 PM
@DavidCarlisle The bit 'inside' language.dat is slightly different as it's not exactly tied to babel (beyond the need to read the file and 'do stuff'). I'm thinking mainly at the moment about all of the stuff related to different encodings (which we might reasonably want to rationalise/drop/....). @ArthurReutenauer's info is useful: I have some idea now of how Hans tackles this.
 
@JosephWright You may want to ask him directly at this point :-)
 
MathML telecon, got to go.....
 
@ArthurReutenauer The key point is that you'd know if the mechanisms you are involved in had been modified or where fixed in some way to work with ConTeXt, so I can assume Hans does his own thing
 
@JosephWright Yes, he definitely does.
 
3:20 PM
@JosephWright csplain, for example, uses it's own language definition system.
the language numbers are really important in LuateX's node callbacks, because it is only information you get about the language from glyph nodes
I've wrote some library for parsing language.dat for LuaTeX: github.com/michal-h21/luavlna/blob/master/langno.lua
 
1
Q: Which TeX App and packages are optimal for creating slides on Japanese?

Gurebu BokofuThe settings in beamer for japanese language providing are too complicated, same as any oter class for slides which is not adapted for japanese. I find some TeX-based class, application, or package for slides creating which comfortable if use japanese. For now, I use japanese-language classes in...

 
@michal.h21 Should be possible to do a lookup to the language name, I'd imagine (if nothing else one could alter \newlanguage to store the data in a Lua table)
@michal.h21 I'm mainly worried about plain/2e/ConTeXt cross-compatibility
@michal.h21 Probably I'll parse in TeX :-)
 
@JosephWright Any thoughts on what to do with the japanese Slides question i linked above? It has an open bounty ending soon and the last comment confuses me a bit
 
@Johannes_B Simples
@Johannes_B I've refunded the bounty and closed: it's really not clear
 
@JosephWright I didn't know that works. Thanks for taking action :-)
 
3:34 PM
@JosephWright There is stuff to do that in the LuaTeX-specific part of hyph-utf8, called luatex-hyphen.
 
@Johannes_B Mod power: we are meant to use it sparingly (as giving a bounty gets extra views, which the rep 'pays' for)
@ArthurReutenauer Probably :-) I suspect this should be doable 'directly', as for other registers, but that is in reality at present a bit hit-and-miss (see weird artefacts based on exact naming of commands, etc.)
 
@JosephWright Of course that only works out, if somebody actually clicks on the question and provides an answer others can read :-)
 
@Johannes_B Yes
@ArthurReutenauer Interesting
@ArthurReutenauer What's the reason for having the hyph-<id>.pat.txt files? They look very much like the content of \patterns but without the TeX part.
@ArthurReutenauer Looks like you might have saved me one job :-) The combination hyph-<id>.hyh.txt and hyph-<id>.pat.txt does what we probably want (provides the raw data) without needing to rename (again) the primitives :-)
 
@JosephWright Yes, that is the point. They’re used by other projects – not directly unfortunately, but since the format is the same in all free software that deals with hyphenation we tried to set up a collaboration with them. They were picked up by OpenOffice / LibreOffice, an XML-FO parser called OFFO, Firefox, and other projects I forget.
 
@ArthurReutenauer Cool
@ArthurReutenauer Like I say, the .txt versions are probably going to suit L3 more than the .tex ones
 
3:46 PM
@JosephWright Polyglossia already uses the text version with LuaTeX.
 
@ArthurReutenauer I'm sure
 
@JosephWright That’s what LuaTeX expects.
 
@ArthurReutenauer I'll likely be reading that code to work out what we need :-)
 
(When fed patterns from Lua)
 
@ArthurReutenauer Ah, that was going to be one question: I have to look up how to do \patterns for LuaTeX (I know they are different from TeX90 but not the detail)
 
3:48 PM
@JosephWright Don’t, it’s horrible.
 
@ArthurReutenauer Well the interfaces then :-)
 
@JosephWright The interface is not good either (that’s the one for luatex-hyphen, it was written years before anyone would actually use it).
 
@ArthurReutenauer Ah
@ArthurReutenauer When we get to that stage we'll doubtless ask what the interface should be (Johannes will I hope take an interest)
 
@JosephWright Something like \directlua{texhyphen.load_patterns(string), that’s all.
@JosephWright Sure, please let me know when you get there. Have to go back to work.
 
@ArthurReutenauer I'm mainly hacking a 'minimal' format together at present, and we need something for hyphenation even if it's rather basic
@ArthurReutenauer I'm a TeX person, remember:
\everyeof{\noexpand}
\patterns{\input hyph-<id>.pat.txt }
 
4:06 PM
@ArthurReutenauer Thanks for the info: Bruno just came back on exactly this area and I was ready with the info :-)
 
@ArthurReutenauer it is really shame that language ids aren't stored anywhere, this file is used with both babel and polyglossia?
modified version with two new functions: get_id and get_lang:
 
@michal.h21 As I reminded Joseph above, the values of \language depend on the installation and can be anything. They’re not portable and shouldn’t be stored.
 
I know, but this information is really needed when you do some language dependent stuff with node lists :( so there is no portable way?
 
4:22 PM
@michal.h21 Yes, of course, you can use auxiliary functions to read its value. But you shouldn’t store it. And no, it’s absolutely not portable. But that doesn’t prevent implementations from using the numbers internally.
@michal.h21 The programming interface of luatex-hyphen is rather poor anyway and should be rethought at some point, looking at actual implementations.
 
@ArthurReutenauer Next question: who did the (u)pTeX pattern script? I want to work out what's needed there and whether it can be done on the fly
 
@JosephWright Sorry but I really have to work. Ping me some time over the weekend – maybe as soon as tomorrow evening.
@JosephWright But the person who wrote the script was Mojca, you may want to ask her directly (cc me if you want).
 
4:37 PM
@ArthurReutenauer Understood
 
 
2 hours later…
6:21 PM
@JosephWright: How does \RenewDocumentEnvironment work for an environment foo that should be extended to allow for \begin{foo*}`? (and had no starred version before )
 
yo'
7:00 PM
@ChristianHupfer For environments, there is no connection between foo and foo*. In this sense, they are very diffirent from macros. Note also that foo * and foo* environments are different, whereas for macros, \foo * and \foo* are interchangable.
 
I am sorry, but ...
 
@yo' Thanks, I realized that too meanwhile ;-)
one two three four answers ;-)
 
yo'
7:24 PM
@ChristianHupfer good there's at least one stat in which you're not better than me :p
 
8:07 PM
@yo' Ah, you're joking, Mr. 534 answers ;-)
 
yo'
@ChristianHupfer no, I'm not. I've got higher rep-per-post ratio :-)
 
@yo' Of course... because I am answering questions which do not get much votes
 
yo'
@ChristianHupfer well, check @Paulo :-)
 
@yo' @PauloCereda is a serial upvoter but not a serial answer-guy ;-)
 
yo'
@ChristianHupfer quite :)
now I gotta go catch some (a lot of, hopefully) sleep
see you another day (or another universe...)
 
8:39 PM
@ChristianHupfer unlike commands, in 2e there is no relation between an environment and its star form, just define a new environment with name foo*
 
@DavidCarlisle Yes, thanks. I learned it too. Isn't this a little bit contradicting then?
 
@ChristianHupfer well \begin{..} is \begingroup\csname#1\endcsname so actually although not widely documented you can do \newenvironment{funky name with * and +}{zzz}{zzz} \begin{funky name with * and +}
 
@DavidCarlisle Something like \begin{DavidCarlisleRules>} too? ;-)
 
@ChristianHupfer see I knew, being german you'd not want to take advantage of the possibility of having spaces.
 
@ChristianHupfer A bug would be planted as soon as you call the environment.
 
8:52 PM
@DavidCarlisle Omitting spaces is German efficiency :D
@egreg Actually: \let\DavidCarlisleRules\egregrulesmore ;-)
 
@ChristianHupfer that would be the bug
 
@DavidCarlisle :D :D
 
9:23 PM
@StefanKottwitz Do we have a min_length for posts now? latex-community.org/forum/viewtopic.php?p=92343#p92343 :-)
 
9:39 PM
@Johannes_B: Look at this 'template' and cry desperately: sharelatex.com/project/563bb47bdc257a5149b88bb6
 
@ChristianHupfer Where is it stated that this is a template?
@StefanKottwitz i suggested (implied) to get a TUG membership :-)
 
9:56 PM
@Johannes_B Nowhere, unless by the Template Knight ;-)
 
@ChristianHupfer Gundar is sleeping right now :-p
 
@Johannes_B Gundar ist eine faule Socke :-P
Is \vskip-\baselineskip a bad idea?
 
10:40 PM
@ChristianHupfer it depends if you want to overprint the previous line or not.
 
@DavidCarlisle My question was stupid -- there's white space above
 
@ChristianHupfer still doesn't have a sensible answer:-)
 
@Johannes_B No minimum length I think - whatever he meant
@Johannes_B Good idea! I just thought of motivating being a part of the TeX community in general, forgot to mention the membership idea
 
@StefanKottwitz it'sjust a few bucks and if he can afford it, why not? :-)
 
10:59 PM
@DavidCarlisle Stupid questions do not deserve good answers ;-)
 

« first day (1831 days earlier)      last day (3095 days later) »