Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f0f6d12c
Commit
f0f6d12c
authored
Jan 23, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add \guilabel macro to mark labels that occur in user interfaces
parent
226f6975
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
Doc/doc/doc.tex
Doc/doc/doc.tex
+14
-0
Doc/html/style.css
Doc/html/style.css
+1
-1
Doc/perl/python.perl
Doc/perl/python.perl
+5
-2
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+4
-1
No files found.
Doc/doc/doc.tex
View file @
f0f6d12c
...
@@ -1654,6 +1654,16 @@ This \UNIX\ is also followed by a space.
...
@@ -1654,6 +1654,16 @@ This \UNIX\ is also followed by a space.
The components of graphical interfaces will be assigned markup, but
The components of graphical interfaces will be assigned markup, but
most of the specifics have not been determined.
most of the specifics have not been determined.
\begin{macrodesc}
{
guilabel
}{
\p
{
label
}}
Labels presented as part of an interactive user interface should
be marked using
\macro
{
guilabel
}
. This includes labels from
text-based interfaces such as those created using
\code
{
curses
}
or
other text-based libraries. Any label used in the interface
should be marked with this macro, including button labels, window
titles, field names, menu and menu selection names, and even
values in selection lists.
\end{macrodesc}
\begin{macrodesc}
{
menuselection
}{
\p
{
menupath
}}
\begin{macrodesc}
{
menuselection
}{
\p
{
menupath
}}
Menu selections should be marked using a combination of
Menu selections should be marked using a combination of
\macro
{
menuselection
}
and
\macro
{
sub
}
. This macro is used to mark
\macro
{
menuselection
}
and
\macro
{
sub
}
. This macro is used to mark
...
@@ -1673,6 +1683,10 @@ This \UNIX\ is also followed by a space.
...
@@ -1673,6 +1683,10 @@ This \UNIX\ is also followed by a space.
such as the ellipsis some operating systems use to indicate that
such as the ellipsis some operating systems use to indicate that
the command opens a dialog, the indicator should be omitted from
the command opens a dialog, the indicator should be omitted from
the selection name.
the selection name.
Individual selection names within the
\macro
{
menuselection
}
should
not be marked using
\macro
{
guilabel
}
since that's implied by using
\macro
{
menuselection
}
.
\end{macrodesc}
\end{macrodesc}
\begin{macrodesc}
{
sub
}{}
\begin{macrodesc}
{
sub
}{}
...
...
Doc/html/style.css
View file @
f0f6d12c
...
@@ -123,7 +123,7 @@ div.note .label { margin-right: 0.5em;
...
@@ -123,7 +123,7 @@ div.note .label { margin-right: 0.5em;
.newsgroup
{
font-family
:
avantgarde
,
sans-serif
;
}
.newsgroup
{
font-family
:
avantgarde
,
sans-serif
;
}
.url
{
font-family
:
avantgarde
,
sans-serif
;
}
.url
{
font-family
:
avantgarde
,
sans-serif
;
}
.file
{
font-family
:
avantgarde
,
sans-serif
;
}
.file
{
font-family
:
avantgarde
,
sans-serif
;
}
.
menuselection
{
font-family
:
avantgarde
,
sans-serif
;
}
.
guilabel
{
font-family
:
avantgarde
,
sans-serif
;
}
.tableheader
{
background-color
:
#99ccff
;
.tableheader
{
background-color
:
#99ccff
;
font-family
:
avantgarde
,
sans-serif
;
}
font-family
:
avantgarde
,
sans-serif
;
}
...
...
Doc/perl/python.perl
View file @
f0f6d12c
...
@@ -95,9 +95,12 @@ sub do_cmd_textless{ '<' . $_[0]; }
...
@@ -95,9 +95,12 @@ sub do_cmd_textless{ '<' . $_[0]; }
sub
do_cmd_textunderscore
{
'
_
'
.
$_
[
0
];
}
sub
do_cmd_textunderscore
{
'
_
'
.
$_
[
0
];
}
sub
do_cmd_infinity
{
'
∞
'
.
$_
[
0
];
}
sub
do_cmd_infinity
{
'
∞
'
.
$_
[
0
];
}
sub
do_cmd_plusminus
{
'
±
'
.
$_
[
0
];
}
sub
do_cmd_plusminus
{
'
±
'
.
$_
[
0
];
}
sub
do_cmd_guilabel
{
return
use_wrappers
(
$_
[
0
]
.
'
<span class="guilabel">
',
'
</span>
');
}
sub
do_cmd_menuselection
{
sub
do_cmd_menuselection
{
return
use_wrappers
(
$_
[
0
],
'
<span class="menuselection">
',
'
</span>
');
}
return
use_wrappers
(
$_
[
0
],
'
<span class="guilabel">
',
'
</span>
');
}
sub
do_cmd_sub
{
'
>
'
.
$_
[
0
];
}
sub
do_cmd_sub
{
return
'
</span> > <span class="guilabel">
'
.
$_
[
0
];
}
# words typeset in a special way (not in HTML though)
# words typeset in a special way (not in HTML though)
...
...
Doc/texinputs/python.sty
View file @
f0f6d12c
...
@@ -821,8 +821,11 @@
...
@@ -821,8 +821,11 @@
\newcommand
{
\NULL
}{
\constant
{
NULL
}}
\newcommand
{
\NULL
}{
\constant
{
NULL
}}
\newcommand
{
\infinity
}{
\ensuremath
{
\infty
}}
\newcommand
{
\infinity
}{
\ensuremath
{
\infty
}}
\newcommand
{
\plusminus
}{
\ensuremath
{
\pm
}}
\newcommand
{
\plusminus
}{
\ensuremath
{
\pm
}}
% \guilabel{Start}
\newcommand
{
\guilabel
}
[1]
{
\textsf
{
#1
}}
% \menuselection{Start \sub Programs \sub Python}
% \menuselection{Start \sub Programs \sub Python}
\newcommand
{
\menuselection
}
[1]
{
\
textsf
{
\def\sub
{
\ensuremath
{
>
}
}
#1
}}
\newcommand
{
\menuselection
}
[1]
{
\
guilabel
{{
\def\sub
{
\ensuremath
{
>
}
}
#1
}
}}
% Also for consistency: spell Python "Python", not "python"!
% Also for consistency: spell Python "Python", not "python"!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment