[kde-doc-english] [Bug 256418] Docbook entities are probably misused

2010-11-09 Thread Burkhard Lueck
https://bugs.kde.org/show_bug.cgi?id=256418


Burkhard Lueck  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DOWNSTREAM




--- Comment #5 from Burkhard Lueck   2010-11-09 21:52:36 
---
(In reply to comment #4)
> (In reply to comment #3)
> > > and then use &kate; on the rest of the documents. 
> > 
> > No, that is wrong, we then use &kappname; in the document. 
> > This entitiy &kappname; is expanded in this way:
> > &kappname; -> &kate; -> Kate
> > Where an entity like &kate; is defined in general.entities in kdelibs
> > And &kate; used in the document is expanded via general.entities to
> > Kate
> > 
> > From http://docbook.org/tdg/en/html/ch01.html#s-entities:
> > 
> > You see in this example that using an entity ("&") in an entity 
> > definition is valid docbook syntax.
> 
> Thanks for the interest and for the explanation. I didn't know of the 
> existence
> of the general.entities file, but as long as the &kate; entity (in this
> example) is defined somewhere I agree it's fine to expand kappname to another
> entity. I'm not sure if "we then use"  means "we should use" or "in fact, we
> use" 

if "we then use" means *not* "we should use" (reason see the link in my reply
to comment #2), but "in fact, we use". Either direktly as &kappname; in the
docbook text or via the docbook tool chain e.g. in the entity
&help.menu.documentation;. That's now the third or fourth level of entitiy
redirection ;-)

> but taking a look at, e.g., 
> 
> http://websvn.kde.org/trunk/l10n-kde4/ca/docs/kdelibs/sonnet/index.docbook?view=markup
> 
The header of language docbooks is just a copy from the english docbook, so you
have to look into kdelibs/doc/sonnet/index.docbook

> you can easily check &kappname; does not appear in the document (which 
> wouldn't
> really break anything, since the sonnet entity was already declared) but then
> it may all be just a matter of style or convenience and we could close this
> report.
> 
Finaly you got me ;-) Guilty!
With rev 1077440 I updated the sonnet docs and and changed it to an article,
where the entity &kappname; is not used any more. I left the entity in the
header. But defining an entity but not use it does not matter and will never
break docbook xml.

Thanks to Yuri's hint I know now that this is a Gentoo bug:

The entity &kpat; is defined in
http://websvn.kde.org/tags/KDE/4.4.0/kdelibs/kdoctools/customization/obsolete/general.entities?view=log.
This file with the entity was removed before 4.5.0 was released.

Obviously you try to build a language from kde 4.4.5 with kdelibs >= 4.5.0. 
Check if you have a file
$KDEDIR/share/apps/ksgmltools2/customization/obsolete/general.entities, I am
sure you will not find it.

Closing as downstream.

Thanks for the report.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.



[kde-doc-english] KDE

2010-11-09 Thread Christoph Feck
SVN commit 1194750 by cfeck:

Allow to hide menu icons

I tested this for three weeks, and when I wanted to revert to the
old behavior, I was really shocked how cluttered the menus look
with icons :)

There are only two places, where I initally missed the icons:
- "Classic" KDE menu
- Konqueror Bookmarks menu

For those places, we could request icons by using the QAction
property, but this probably has to discussed with users.

Actually, I now like the classic menu not showing icons,
because it opens much faster without them. The bookmark
menu never was a problem speedwise.

See http://svn.reviewboard.kde.org/r/5609/
FEATURE: 253339
GUI:


 M  +22 -2 kdebase/workspace/kcontrol/style/finetuning.ui  
 M  +13 -0 kdebase/workspace/kcontrol/style/kcmstyle.cpp  
 M  +2 -0  kdelibs/kdeui/kernel/kglobalsettings.cpp  


--- trunk/KDE/kdebase/workspace/kcontrol/style/finetuning.ui #1194749:1194750
@@ -57,7 +57,27 @@
  
 

-   
+   
+
+ 
+  Show icons in menus:
+ 
+ 
+  Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+ 
+ 
+  cbIconsInMenus
+ 
+
+   
+   
+
+ 
+  
+ 
+
+   
+   
 
  
   Toolbars
@@ -153,7 +173,7 @@
  
 

-   
+   
 
  
   Qt::Vertical
--- trunk/KDE/kdebase/workspace/kcontrol/style/kcmstyle.cpp #1194749:1194750
@@ -255,6 +255,7 @@
 
 connect(cbStyle, SIGNAL(activated(int)), this, SLOT(setStyleDirty()));
 connect(fineTuningUi.cbIconsOnButtons, SIGNAL(toggled(bool)),   this, 
SLOT(setEffectsDirty()));
+connect(fineTuningUi.cbIconsInMenus, SIGNAL(toggled(bool)),   this, 
SLOT(setEffectsDirty()));
 connect(fineTuningUi.comboGraphicEffectsLevel, SIGNAL(activated(int)),   
this, SLOT(setEffectsDirty()));
 connect(fineTuningUi.comboToolbarIcons,SIGNAL(activated(int)), this, 
SLOT(setEffectsDirty()));
 connect(fineTuningUi.comboSecondaryToolbarIcons,
SIGNAL(activated(int)), this, SLOT(setEffectsDirty()));
@@ -375,11 +376,19 @@
 if ( !(m_bStyleDirty | m_bEffectsDirty ) )
 return;
 
+const bool showMenuIcons = 
!QApplication::testAttribute(Qt::AA_DontShowIconsInMenus);
+if (fineTuningUi.cbIconsInMenus->isChecked() != showMenuIcons) {
+KMessageBox::information(this,
+  i18n("Changes to the visibilty of menu icons will only affect 
newly started applications."),
+  i18nc("@title:window", "Menu Icons Changed"), "MenuIconsChanged");
+}
+
 // Save effects.
 KConfig  _config("kdeglobals", KConfig::NoGlobals);
 KConfigGroup config(&_config, "KDE");
 // Effects page
 config.writeEntry( "ShowIconsOnPushButtons", 
fineTuningUi.cbIconsOnButtons->isChecked());
+config.writeEntry( "ShowIconsInMenuItems", 
fineTuningUi.cbIconsInMenus->isChecked());
 KConfigGroup g( &_config, "KDE-Global GUI Settings" );
 g.writeEntry( "GraphicEffectsLevel", 
fineTuningUi.comboGraphicEffectsLevel->itemData(fineTuningUi.comboGraphicEffectsLevel->currentIndex()));
 
@@ -479,6 +488,7 @@
 
fineTuningUi.comboToolbarIcons->setCurrentIndex(toolbarButtonIndex("TextBesideIcon"));
 
fineTuningUi.comboSecondaryToolbarIcons->setCurrentIndex(toolbarButtonIndex("TextBesideIcon"));
 fineTuningUi.cbIconsOnButtons->setChecked(true);
+fineTuningUi.cbIconsInMenus->setChecked(true);
 
fineTuningUi.comboGraphicEffectsLevel->setCurrentIndex(fineTuningUi.comboGraphicEffectsLevel->findData(((int)
 KGlobalSettings::graphicEffectsLevelDefault(;
 emit changed(true);
 }
@@ -710,6 +720,7 @@
 
 configGroup = config.group("KDE");
 
fineTuningUi.cbIconsOnButtons->setChecked(configGroup.readEntry("ShowIconsOnPushButtons",
 true));
+
fineTuningUi.cbIconsInMenus->setChecked(configGroup.readEntry("ShowIconsInMenuItems",
 true));
 
 KConfigGroup graphicConfigGroup = config.group("KDE-Global GUI Settings");
 
fineTuningUi.comboGraphicEffectsLevel->setCurrentIndex(fineTuningUi.comboGraphicEffectsLevel->findData(graphicConfigGroup.readEntry("GraphicEffectsLevel",
 ((int) KGlobalSettings::graphicEffectsLevel();
@@ -737,6 +748,8 @@
 "Text is aligned below the icon.") );
 fineTuningUi.cbIconsOnButtons->setWhatsThis( i18n( "If you enable this 
option, KDE Applications will "
 "show small icons alongside some important 
buttons.") );
+fineTuningUi.cbIconsInMenus->setWhatsThis( i18n( "If you enable this 
option, KDE Applications will "
+"show small icons alongside most menu items.") );
 fineTuningUi.comboGraphicEffectsLevel->setWhatsThis( i18n( "If you enable 
this option, KDE Applications will "
 "run internal animations.") );
 }
--- trunk/KDE/kdelibs/kdeui/kernel/kglobalsettings.cpp #1194749:1194750
@@ -1118,6 +1118,8 @@
 QApplication::setStartDragDistance(num);
 num = cg.readEntry("WheelScrollLines", QApplication::wheelScrollLines());
 QApplicatio

[kde-doc-english] [Bug 256418] Docbook entities are probably misused

2010-11-09 Thread David E. Narvaez
https://bugs.kde.org/show_bug.cgi?id=256418





--- Comment #4 from David E. Narvaez   2010-11-09 
18:57:03 ---
(In reply to comment #3)
> > and then use &kate; on the rest of the documents. 
> 
> No, that is wrong, we then use &kappname; in the document. 
> This entitiy &kappname; is expanded in this way:
> &kappname; -> &kate; -> Kate
> Where an entity like &kate; is defined in general.entities in kdelibs
> And &kate; used in the document is expanded via general.entities to
> Kate
> 
> From http://docbook.org/tdg/en/html/ch01.html#s-entities:
> 
> You see in this example that using an entity ("&") in an entity definition
> is valid docbook syntax.

Thanks for the interest and for the explanation. I didn't know of the existence
of the general.entities file, but as long as the &kate; entity (in this
example) is defined somewhere I agree it's fine to expand kappname to another
entity. I'm not sure if "we then use"  means "we should use" or "in fact, we
use" but taking a look at, e.g., 

http://websvn.kde.org/trunk/l10n-kde4/ca/docs/kdelibs/sonnet/index.docbook?view=markup

you can easily check &kappname; does not appear in the document (which wouldn't
really break anything, since the sonnet entity was already declared) but then
it may all be just a matter of style or convenience and we could close this
report.

> That is not the reason for Gentoo Bug 343523.
> 
> In #343523 I see too different issues:
> 
> 1) Entity 'kdf' not defined
> en_GB-4.4.5/docs/kdeutils/kinfocenter/blockdevices/index.docbook -> that is a
> broken language docbook.
> 
> 2) Entity 'kpat' not defined
> We had a problem in the kde archiv with man-kpat.6.docbook switching from DTD
> 4.1 to DTD 4.2; the entity &kpat; had to be replaced with &kpatience; to make
> this docbook man page compilable. I have no idea why this was necessary,
> man-kpat.6.docbook is unchanged since < 4.0.
> 
> I have no 4.4 kde source environment available any more, so I can't dig into
> that issue further. My guess is that this is a Gentoo issue related to  mixing
> DTD 4.1/4.2

I was actually treating both things separately but your insight on the kpat
issue is great and I'll be investigating down that line.

Thanks again.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.



[kde-doc-english] [Bug 256418] Docbook entities are probably misused

2010-11-09 Thread Burkhard Lueck
https://bugs.kde.org/show_bug.cgi?id=256418





--- Comment #3 from Burkhard Lueck   2010-11-09 18:17:10 
---
(In reply to comment #0)
> Created an attachment (id=53266)
 --> (http://bugs.kde.org/attachment.cgi?id=53266) [details]
> A list of files in kde-l10n sources declaring entities in a suspicious way
> 
> Version:   unspecified (using Devel) 
> OS:unspecified
> 
> I stumbled upon this analyzing bug reports like
> 
> https://bugs.gentoo.org/show_bug.cgi?id=343523
> 
> where docbook complains about entities not declared. According to
> 
> http://www.w3schools.com/dtd/dtd_entities.asp
> 
> you declare an entity using syntax like
> 
> 
> 
That is an exception, only 7 of 156 entity definitions in docbooks use this
form

> and then use the entity as &kappname; on the rest of the document. It looks
> like a widespread practice on the translation documents of kde-l10n to use a
> syntax similar to 
> 
> 
> 
That is the major use case, 149 of 156 entity definitions in docbooks use this
form

> and then use &kate; on the rest of the documents. 

No, that is wrong, we then use &kappname; in the document. 
This entitiy &kappname; is expanded in this way:
&kappname; -> &kate; -> Kate
Where an entity like &kate; is defined in general.entities in kdelibs
And &kate; used in the document is expanded via general.entities to
Kate



[kde-doc-english] [Bug 256418] Docbook entities are probably misused

2010-11-09 Thread Freek de Kruijf
https://bugs.kde.org/show_bug.cgi?id=256418


Freek de Kruijf  changed:

   What|Removed |Added

 CC||f.de.kruijf at gmail.com




--- Comment #2 from Freek de Kruijf   2010-11-09 
13:53:34 ---
In my view this certainly is OK. It simply means that you do can use &kappname;
where you want to use the entity for the current application.
The advantage is that if the name of the application changes, and this happens,
you do not need to change the messages. Like the change we had with ktts to
jovie, but there have been more.
Another advantage is that a message like "&kappname; handbook", which can be
used in all docbooks, only needs to be translated once.
However it is not used very often by the document writers.
So this not a bug, but a feature and it may need some promotion.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.



[kde-doc-english] [Bug 256418] Docbook entities are probably misused

2010-11-09 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=256418


Albert Astals Cid  changed:

   What|Removed |Added

  Component|general |general
 AssignedTo|tsdgeos at terra.es|kde-doc-english at kde.org
Product|i18n|docs
Summary|Docbook entities in |Docbook entities are
   |translations are probably   |probably misused
   |misused |




--- Comment #1 from Albert Astals Cid   2010-11-09 09:42:16 
---
No idea if that is the correct syntax or not, but that's not a fault of the
translation but from the original docbooks so moving to the docs team.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.