After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 153855 - gnopernicus has narrow cells against two column chars.
gnopernicus has narrow cells against two column chars.
Status: RESOLVED DUPLICATE of bug 154161
Product: gnopernicus
Classification: Deprecated
Component: brlmon
unspecified
Other Solaris
: Normal normal
: ---
Assigned To: ps
ps
AP3
Depends on:
Blocks:
 
 
Reported: 2004-09-27 16:19 UTC by korn
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
patch for brlmonitor.schemas.in (3.98 KB, patch)
2004-09-30 09:46 UTC, Takao Fujiwara
none Details | Review
patch for POTFILES.in (1.55 KB, patch)
2004-09-30 09:47 UTC, Takao Fujiwara
none Details | Review

Description korn 2004-09-27 16:19:41 UTC
1. Login into GNOME on ja_JP.UTF-8.
2. Invoke gnopernicus and enable brlmonitor.
3. Activate any Japanese multibyte chars.

Then the cells are too narrow.

Suggested fix:
--- gnopernicus-0.9.10/brlmon/brlmonui.c.orig   2004-09-27 11:39:17.962589000 +0900
+++ gnopernicus-0.9.10/brlmon/brlmonui.c        2004-09-27 13:25:13.186362000 +0900
@@ -1327,6 +1327,12 @@
     brlmon_get_screen_size (&x_screen, &y_screen);    
 
     brlmon_cell_frame_x_size = (gint)(x_screen / (column + STATUS_CELL_COUNT));
+    if ( brlmon_cell_frame_x_size <= brlmon_font_size * 2 + 7) {
+      brlmon_cell_frame_x_size = brlmon_font_size * 2 + 7;
+      column = (gint)(x_screen / brlmon_cell_frame_x_size) - STATUS_CELL_COUNT;
+      our_resize_width = width;
+      brlmon_set_int (column,   BRAILLE_MONITOR_COLUMN_GCONF_KEY);    
+    }
     brlmon_cell_frame_y_size = brlmon_font_size + 2 * CELL_MARGINE;
     
     width  = x_screen;

(courtesy of takao.fujiwara@sun.com 2004-09-28)
Comment 1 Dana Ormenisan 2004-09-29 12:35:30 UTC
User has the possibility to increase brlmon's cells width by decreasing the
number of columns (go to Gnopernicus->Preferences->Braille Monitor, and decrease
Column value).
I apply this patch and the Japanese chars looks right after the cell's width was
increased. But after login into GNOME on en_US the dimension was the same, to
big in my opinion for our chars.
Comment 2 korn 2004-09-29 15:23:45 UTC
Until we can generate Japanese Braille, I think this is not a P2/AP1 bug, but
rather of lower priority.
Comment 3 Dana Ormenisan 2004-09-30 07:42:46 UTC
I do not understand why is this a bug. User has also the posibility to change
font size from Gnopernicus->Preferences->Braille Monitor.
Comment 4 bill.haneman 2004-09-30 09:06:03 UTC
yes, and in any case the patch isn't quite correct (it always reserves space for
"double width" characters).
Comment 5 Takao Fujiwara 2004-09-30 09:14:52 UTC
Why is it not a bug?
The cells are always narrow in multibyte environemnt by default.
OK, I'll provide the second patch. Please wait for it.
Comment 6 Takao Fujiwara 2004-09-30 09:46:47 UTC
Created attachment 32100 [details] [review]
patch for brlmonitor.schemas.in

Added the new patch to localize the cell size.
Comment 7 Takao Fujiwara 2004-09-30 09:47:28 UTC
Created attachment 32101 [details] [review]
patch for POTFILES.in

Added the patch for potfile.
Comment 8 Takao Fujiwara 2004-09-30 09:49:16 UTC
The second patch is to localize the defualt cell size. Then we can configure the 
cell size by locale.
Comment 9 Takao Fujiwara 2004-09-30 09:57:54 UTC
BTW, the latest tarball misses the following files:

gnopi/gnopernicus.desktop.in
srcore/verbose.xml.in

Please add those files into the tarball. They are needed for the translation.

Comment 10 remus draica 2004-09-30 13:44:21 UTC
Bug #154153 is filled for comment #9.
Comment 11 remus draica 2004-09-30 14:36:28 UTC
Bug #154153 is filled for comment #6.
Comment 12 bill.haneman 2004-09-30 14:51:08 UTC
Takao: note also that verbose.xml.in is missing from POTFILES.in.  We can't
change this in the gnome-2.8 branch but you will need to be aware of this when
preparing new translations.
Comment 13 remus draica 2004-10-01 10:07:47 UTC
Comment on attachment 32101 [details] [review]
patch for POTFILES.in

All files added here are disabled for moment (except	brlmon.schemas.in,
which is subject of another bug).
Comment 14 remus draica 2004-10-12 12:50:01 UTC
Update for comment #11 "Bug #154153 is filled for comment #7".
Bug #154161 is filled for comment #6.

Since the original problem is subject of bug #154161, I'm closing this bug as
duplicate of #154161.


*** This bug has been marked as a duplicate of 154161 ***