Open tsdh opened 13 years ago
Thank you for your comment and bug report.
Yes, I also think that calfw should display images in the grids. So, I will try org-google-weather to research using images in org files. Please give me a time to research.
If it takes much time for me to implement the function, I would merge your patch to the master branch to avoid the problem.
Hi!
Yes, I also think that calfw should display images in the grids. So, I will try org-google-weather to research using images in org files. Please give me a time to research.
Sure. By the way, I just noticed that besides images also unicode characters skrew the table layout. Again as an example, org-google-weather inserts a ℃ character which is slightly wider than normal ascii chars, at least with the font emacs chooses to display it. (I use DeJaVu Sans Mono by default, but that doesn't contain this character, and so emacs falls back to xft:-unknown-AntPoltSemiCond.)
If it takes much time for me to implement the function, I would merge your patch to the master branch to avoid the problem.
Feel free to do so. But as I've said, I think a proper handling of display text properties (even if it's simply removing them) belongs into calfw.el instead of only the org mode backend.
Bye, Tassilo
I've just discovered calfw and it's awesome! I use it together with org-mode.
One minor glitch is that the tables get confused by images. For example, in one of my org files I have this entry:
This uses the org-google-weather package to insert a short weather forecast including an icon (sunny, cloudy, etc.) into the org agenda buffer.
Screenshot Org Agenda: http://dl.dropbox.com/u/30611246/img/org-agenda.png
When that is converted to a calfw calendar table, then the borders of the cells are wrong.
Screenshot Calfw: http://dl.dropbox.com/u/30611246/img/org-calfw.png
Clearly, the table code relies on monospaced fonts and images don't fit well here. So I think you should just strip images, that is, the display text property.
This is a very simply patch that fixes the issue for me:
However, I'm not convinced that it is a good idea to only fix the org mode stuff. Most probably the filtering (or better, a nifty implementation of how to correctly handle display specs) of display text properties should be in calfw.el, but I can't spot the right location at a first glance.