-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update character widths from Unifont 8.0.01 #51
Conversation
The Ruby oddness strikes again. A difference in the @StefanKarpinski, you used to be a Ruby hacker, right? Any idea why the data_generator.rb script would be non-deterministic? |
Note that e.g. u+06de now has a charwidth of 2 with this patch. This seems odd to me: on my terminal, |
Hashes are unordered in Ruby 1.8.x (but not, I believe in 1.9.x). Perhaps that could affect things? |
@StefanKarpinski, I figured that the order of a hash would be undefined, but I'm not seeing where the script would depend on this. What am I missing? |
Has anyone been able to reproduce this failure locally? I tried using the same Ruby version as on Travis (ruby 1.9.3p551, from #48), but it still passes. |
My inclination is to merge this and to open a separate issue for the data-generation Travis test, since that was a problem prior to this patch. |
How difficult is this Ruby code to understand? We've got a much better language right here! |
I don't have the time to rewrite it from scratch right now, do you? Also, it is frustrating to rewrite otherwise-working code rather than fix something that is probably a one-line fix, if only I could reproduce the problem. |
It is really that complicated? I'm just asking, not trying to pressure you (or anybody) into rewriting it. |
The Ruby code is pretty straightforward, but it's also unclear why it would be nondeterministic. I don't think completely rewriting it is the answer. |
Update character widths from Unifont 8.0.01
Merged since the Ruby problem on Travis is not a regression in this patch. |
Ref #50