man.xsl revision 46185892
10412cdedSmrg<?xml version="1.0" encoding="UTF-8"?>
20412cdedSmrg<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
30412cdedSmrg    <xsl:output method="text" encoding="UTF-8" doctype-system="xkb.dtd"/>
40412cdedSmrg    <xsl:template match="/xkbConfigRegistry">
50412cdedSmrg        <xsl:text><![CDATA[.\" WARNING: this man page is autogenerated. Do not edit or you will lose all your changes.
646185892Smrg.TH XKEYBOARD-CONFIG 7 @vendorversion@
70412cdedSmrg.SH NAME
80412cdedSmrgxkeyboard-config \- XKB data description files
90412cdedSmrg.SH DESCRIPTION
100412cdedSmrgxkeyboard-config provides the description files for the X Keyboard
1146185892SmrgExtension (XKB) and for libxkbcommon. Typically it is
1246185892Smrgthe task of the desktop environment to apply the
1346185892Smrgrequested configuration. Users running an X server can also use the
1446185892Smrgsetxkbmap(1) tool to apply keyboard configuration at runtime or configure XKB
1546185892Smrgsettings in the xorg.conf(5).
1646185892Smrg
1746185892Smrg.SH XKB DATA FILES LOAD PATHS
1846185892Smrg
1946185892Smrgxkeyboard-config provides the XKB data files installed in
2046185892Smrg@xkb_base@. User-specific data files may be elsewhere but it depends on
2146185892Smrgthe tool whether those files are loaded. For example, the libxkbcommon
2246185892Smrglibrary will by default load XKB data files from the user's home directory.
2346185892SmrgSee the libxkbcommon documentation for details.
2446185892Smrg
2546185892Smrg.SH THE "CUSTOM" LAYOUT
2646185892Smrg
2746185892SmrgThe "custom" layout is a layout that is listed as available to tools
2846185892Smrgreading the data files but is not actually provided by xkeyboard-config.
2946185892SmrgA user may save a layout specification in the @xkb_base@/symbols/custom file
3046185892Smrgand that layout will be available to most tools interacting with the
3146185892Smrgxkeyboard-config data files. This is primarily aimed at systems running X
3246185892Smrgwhere additional lookup paths cannot easily be added.
3346185892Smrg.PP
3446185892SmrgBecause the "custom" layout is merely listed as available but not
3546185892Smrgprovided by xkeyboard-config, the layout will not be overwritten on updates.
3646185892Smrg
370412cdedSmrg.SH MODELS
380412cdedSmrg.TS
390412cdedSmrgleft,box;
400412cdedSmrglB lB
410412cdedSmrg___
420412cdedSmrglB l.
430412cdedSmrgModel	Description
440412cdedSmrg]]></xsl:text>
450412cdedSmrg        <xsl:apply-templates select="modelList"/>
460412cdedSmrg        <xsl:text><![CDATA[
470412cdedSmrg.TE
480412cdedSmrg.SH LAYOUTS
490412cdedSmrg.TS
500412cdedSmrgleft,box;
510412cdedSmrglB lB
520412cdedSmrg____
530412cdedSmrglB l.
540412cdedSmrgLayout(Variant)	Description
550412cdedSmrg]]></xsl:text>
560412cdedSmrg        <xsl:apply-templates select="layoutList"/>
570412cdedSmrg        <xsl:text><![CDATA[
580412cdedSmrg.TE
590412cdedSmrg.SH OPTIONS
600412cdedSmrg]]></xsl:text>
610412cdedSmrg        <xsl:apply-templates select="optionList"/>
620412cdedSmrg        <xsl:text><![CDATA[
630412cdedSmrg.SH FILES
648157b447Smrg@xkb_base@/compat
650412cdedSmrg
668157b447Smrg@xkb_base@/compiled
670412cdedSmrg
688157b447Smrg@xkb_base@/geometry
690412cdedSmrg
708157b447Smrg@xkb_base@/keycodes
710412cdedSmrg
728157b447Smrg@xkb_base@/keymap
730412cdedSmrg
748157b447Smrg@xkb_base@/rules
750412cdedSmrg
768157b447Smrg@xkb_base@/semantics
770412cdedSmrg
788157b447Smrg@xkb_base@/symbols
790412cdedSmrg
808157b447Smrg@xkb_base@/types
810412cdedSmrg
820412cdedSmrg.SH SEE ALSO
8346185892Smrgsetxkbmap(1)
840412cdedSmrg]]></xsl:text>
850412cdedSmrg    </xsl:template>
860412cdedSmrg
870412cdedSmrg<!-- split model/description into a normal table -->
880412cdedSmrg    <xsl:template match="modelList">
890412cdedSmrg        <xsl:for-each select="model">
900412cdedSmrg            <xsl:value-of select="configItem/name"/><xsl:text>&#9;</xsl:text><xsl:value-of select="configItem/description"/>
910412cdedSmrg            <xsl:text>&#10;</xsl:text>
920412cdedSmrg        </xsl:for-each>
930412cdedSmrg    </xsl:template>
940412cdedSmrg
950412cdedSmrg<!-- split layout/variant/description into a table like this
960412cdedSmrg
970412cdedSmrg        layout1                 description
980412cdedSmrg        layout1(variant1)       description
990412cdedSmrg        layout1(variant2)       description
1000412cdedSmrg        layout2                 description
1010412cdedSmrg        layout2(variant1)       description
1020412cdedSmrg-->
1030412cdedSmrg    <xsl:template match="layoutList">
1040412cdedSmrg        <xsl:for-each select="layout">
1050412cdedSmrg            <xsl:value-of select="configItem/name"/>
1060412cdedSmrg            <xsl:text>&#9;</xsl:text>
1070412cdedSmrg            <xsl:value-of select="configItem/description"/>
1080412cdedSmrg            <xsl:text>&#10;</xsl:text>
1090412cdedSmrg            <xsl:for-each select="variantList/variant">
1100412cdedSmrg                <xsl:value-of select="../../configItem/name"/>
1110412cdedSmrg                <xsl:text>(</xsl:text>
1120412cdedSmrg                <xsl:value-of select="configItem/name"/>
1130412cdedSmrg                <xsl:text>)</xsl:text>
1140412cdedSmrg                <xsl:text>&#9;</xsl:text>
1150412cdedSmrg                <xsl:value-of select="configItem/description"/>
1160412cdedSmrg                <xsl:text>&#10;</xsl:text>
1170412cdedSmrg            </xsl:for-each>
1180412cdedSmrg            <xsl:text>&#10;</xsl:text>
1190412cdedSmrg            <xsl:text>_&#10;</xsl:text>
1200412cdedSmrg        </xsl:for-each>
1210412cdedSmrg    </xsl:template>
1220412cdedSmrg
1230412cdedSmrg<!-- split option into a table like this
1240412cdedSmrg
1250412cdedSmrgoption description:
1260412cdedSmrg        optarg          description
1270412cdedSmrg        optarg          description
1280412cdedSmrg        optarg          description
1290412cdedSmrg
1300412cdedSmrgoption2 description:
1310412cdedSmrg        optarg          description
1320412cdedSmrg        optarg          description
1330412cdedSmrg-->
1340412cdedSmrg    <xsl:template match="optionList">
1350412cdedSmrg        <xsl:for-each select="group">
1360412cdedSmrg            <xsl:text><![CDATA[
1370412cdedSmrg.SS]]></xsl:text>
1380412cdedSmrg            <xsl:text>&#10;</xsl:text>
1390412cdedSmrg            <xsl:value-of select="configItem/description"/>
1400412cdedSmrg            <xsl:text><![CDATA[
1410412cdedSmrg.BR
1420412cdedSmrg.TS
1430412cdedSmrgleft,box;
1440412cdedSmrglB lB
1450412cdedSmrg___
1460412cdedSmrglB l.
1470412cdedSmrgOption	Description
1480412cdedSmrg]]></xsl:text>
1490412cdedSmrg            <xsl:for-each select="option">
1500412cdedSmrg                <xsl:value-of select="configItem/name"/>
1510412cdedSmrg                <xsl:text>&#9;</xsl:text>
1520412cdedSmrg                <xsl:value-of select="configItem/description"/>
1530412cdedSmrg                <xsl:text>&#10;</xsl:text>
1540412cdedSmrg            </xsl:for-each>
1550412cdedSmrg            <xsl:text><![CDATA[
1560412cdedSmrg.TE
1570412cdedSmrg
1580412cdedSmrg]]></xsl:text>
1590412cdedSmrg        </xsl:for-each>
1600412cdedSmrg    </xsl:template>
1610412cdedSmrg</xsl:stylesheet>
162