File/templates/docbook/edit/content/text_to_xml/fun.regex_replace.php

Description

Replace wiki inline markups with docbook markups, using regular expressions.

Functions
convert_menu_items (line 182)

This function gets a string like this: 'M_enu->S_ubmenu->MenuI_tem (Ctrl-C)' and returns a docbook code like this:

<menuchoice> <shortcut> <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> </shortcut> <guimenu><accel>M</accel>enu</guimenu> <guisubmenu><accel>S</accel>ubmenu</guisubmenu> <guimenuitem>Menu<accel>I</accel>tem</guimenuitem> </menuchoice>.

void convert_menu_items ( $str)
  • $str
mediaobject (line 253)

Returns a <mediobject> element

void mediaobject ( $filename, [ $width = ''], [ $alt = ''])
  • $filename
  • $width
  • $alt
regex_replace (line 54)
void regex_replace ( $line)
  • $line

Documentation generated on Wed, 09 Jan 2008 08:26:52 +0100 by phpDocumentor 1.3.2