Search the web
Sign In
New User? Sign Up
vim-multibyte · Vim (Vi IMproved) text editor special language list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
DejaVu Sans Mono, MacVim, Combining Diacritics   Message List  
Reply | Forward Message #2608 of 2649 |
Problem with rendering Combining Diacritics, using DejaVuSansMono in
MacVim/gvim


I use MacVim/gvim with either

1. DejaVuSansMono.ttf , currently 2.29, or
2. BrighamVuSansMono.ttf (my modification of DejaVuSansMono.ttf
2.22 that I augmented, using FontForge, with Deseret Alphabet glyphs)

With input sequences involving combining diacritics, and having
nothing to do with the added Deseret Alphabet glyphs, I somehow have
better results with BrighamVuSansMono.ttf (based on DejaVuSansMono.ttf
2.22) than with DejaVuSansMono.ttf 2.29.

For example, if, using DejaVuSansMono.ttf 2.29, I enter (in MacVim/
gvim) the sequence

0 0061 LATIN SMALL LETTER A
1 0328 COMBINING OGONEK
2 0301 COMBINING ACUTE ACCENT
3 0020 SPACE
4 0061 LATIN SMALL LETTER A
5 0301 COMBINING ACUTE ACCENT
6 0328 COMBINING OGONEK
7 0020 SPACE
8 000a

the gvim rendering is garbled. (I should see two instances of 'a'
with ogonek below and an acute accent above.)
The 'a's are not displayed, and there are some floating accents.
Here's a picture of the result in my gvim window:


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---



Wed Apr 15, 2009 11:57 pm

krbeesley@...
Send Email Send Email

Attachment
DejaVuSansMono2.29.tiff
Type:
image/tiff



I dumped the buffer to file, and the sequence of characters is as
shown above. So it's a rendering (or font) problem.
I downloaded the old DejaVuSansMono.ttf v. 2.22 and got the same
results.

***********************

If, however, I use my BrighamVuSansMono.ttf (based on
DejaVuSansMono.ttf 2.22), and enter the same sequence above,
the rendering is very different. In either case, I see an acceptably
rendered 'a' with a ogonek below and an acute accent above.
Voila:



Attachment
DejaVuSansMono2.22.tiff
Type:
image/tiff



The only change was this. In the first (garbled) example, I specified

set anti guifont=DejaVu\ Sans\ Mono.h14

in my .gvimrc file. In the second (successful) example, I specific
instead

set anti guifont=BrighamVu\ Sans\ Mono.h14

As far as I can remember, BrighamVuSansMono.ttf was created by adding
glyphs to DejaVuSansMono.ttf version 2.22. These glyphs are in the
supplementary area, so perhaps I increased the encoding (in FontForge)
of the resulting font to cover all of Unicode. But I'm sure I did
nothing directly to the combining diacritics.

I know that the rendering is being done by MacVim/gvim, but can anyone
tell me why it might work better with my modified v. 2.22 than with
2.29 or the unmodified 2.22?

(My MacVim is 7.2.148, snapshot 45)

Thanks,

Ken


******************************
Kenneth R. Beesley, D.Phil.
P.O. Box 540475
North Salt Lake, UT
84054 USA







Forward
Message #2608 of 2649 |
Expand Messages Author Sort by Date

Problem with rendering Combining Diacritics, using DejaVuSansMono in MacVim/gvim I use MacVim/gvim with either 1. DejaVuSansMono.ttf , currently 2.29, or 2....
Kenneth Reid Beesley
krbeesley@...
Send Email
Apr 16, 2009
12:03 am

I tested that combination in my terminal (which uses DejaVu Sans Mono, rendered via the bytecode), which was handy. My version of DejaVu as installed is svn...
James Cloos
cloos@...
Send Email
Apr 16, 2009
2:14 am

... [...] You're spurring me to run some more tests on my version of gvim. I'm on Linux with GTK2 gvim, and I don't have BrighamVu Sans Mono installed, but I...
Tony Mechelynck
antoine.mechelynck@...
Send Email
Apr 17, 2009
11:56 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help