The dom.markup module¶
Helper module to manually construct markup elements.
Usage example:
>>> import quickly.dom.markup as m
>>> mkup = m.markup(m.bold("text", "text2"))
>>> mkup.write()
'\markup \bold { text text2 }'
>>> mkup.dump()
<lily.Markup '\markup' (1 child)>
╰╴<lily.MarkupCommand 'bold' (1 child)>
╰╴<lily.MarkupList (2 children)>
├╴<lily.MarkupWord 'text'>
╰╴<lily.MarkupWord 'text2'>
-
abs_fontsize(arg, *text)¶ The
\abs-fontsizemarkup command.
-
arrow_head(arg1, arg2, *text)¶ The
\arrow-headmarkup command.
-
auto_footnote(arg, *text)¶ The
\auto-footnotemarkup command.
-
backslashed_digit(*text)¶ The
\backslashed-digitmarkup command.
-
beam(arg1, arg2, *text)¶ The
\beammarkup command.
-
bold(*text)¶ The
\boldmarkup command.
-
box(*text)¶ The
\boxmarkup command.
-
bracket(*text)¶ The
\bracketmarkup command.
-
caps(*text)¶ The
\capsmarkup command.
-
center_align(*text)¶ The
\center-alignmarkup command.
-
center_column(*text)¶ The
\center-columnmarkup command.
-
circle(*text)¶ The
\circlemarkup command.
-
column(*text)¶ The
\columnmarkup command.
-
column_lines(*text)¶ The
\column-linesmarkup command.
-
combine(arg, *text)¶ The
\combinemarkup command.
-
compound_meter(*text)¶ The
\compound-metermarkup command.
-
concat(*text)¶ The
\concatmarkup command.
-
customTabClef(arg, *text)¶ The
\customTabClefmarkup command.
-
dir_column(*text)¶ The
\dir-columnmarkup command.
-
discant(*text)¶ The
\discantmarkup command.
-
doubleflat()¶ The
\doubleflatmarkup command.
-
doublesharp()¶ The
\doublesharpmarkup command.
-
draw_circle(arg1, arg2, *text)¶ The
\draw-circlemarkup command.
-
draw_dashed_line(*text)¶ The
\draw-dashed-linemarkup command.
-
draw_dotted_line(*text)¶ The
\draw-dotted-linemarkup command.
-
draw_hline()¶ The
\draw-hlinemarkup command.
-
draw_line(*text)¶ The
\draw-linemarkup command.
-
dynamic(*text)¶ The
\dynamicmarkup command.
-
ellipse(*text)¶ The
\ellipsemarkup command.
-
eyeglasses()¶ The
\eyeglassesmarkup command.
-
fermata()¶ The
\fermatamarkup command.
-
fill_line(*text)¶ The
\fill-linemarkup command.
-
fill_with_pattern(space, direction, pattern, left, right)[source]¶ The
\fill-with-patternmarkup command.
-
finger(*text)¶ The
\fingermarkup command.
-
first_visible(*text)¶ The
\first-visiblemarkup command.
-
flat()¶ The
\flatmarkup command.
-
fontCaps(*text)¶ The
\fontCapsmarkup command.
-
fontsize(arg, *text)¶ The
\fontsizemarkup command.
-
footnote(arg, *text)¶ The
\footnotemarkup command.
-
fraction(arg, *text)¶ The
\fractionmarkup command.
-
freeBass(*text)¶ The
\freeBassmarkup command.
-
general_align(arg1, arg2, *text)¶ The
\general-alignmarkup command.
-
halign(arg, *text)¶ The
\halignmarkup command.
-
hbracket(*text)¶ The
\hbracketmarkup command.
-
hcenter_in(arg, *text)¶ The
\hcenter-inmarkup command.
-
hspace(*text)¶ The
\hspacemarkup command.
-
huge(*text)¶ The
\hugemarkup command.
-
if_(arg, *text)¶ The
\ifmarkup command.
-
italic(*text)¶ The
\italicmarkup command.
-
justify(*text)¶ The
\justifymarkup command.
-
justify_line(*text)¶ The
\justify-linemarkup command.
-
large(*text)¶ The
\largemarkup command.
-
larger(*text)¶ The
\largermarkup command.
-
left_align(*text)¶ The
\left-alignmarkup command.
-
left_brace(*text)¶ The
\left-bracemarkup command.
-
left_column(*text)¶ The
\left-columnmarkup command.
-
line(*text)¶ The
\linemarkup command.
-
lower(arg, *text)¶ The
\lowermarkup command.
-
magnify(arg, *text)¶ The
\magnifymarkup command.
-
map_markup_commands(arg, *text)¶ The
\map-markup-commandsmarkup command.
-
markalphabet(*text)¶ The
\markalphabetmarkup command.
-
markletter(*text)¶ The
\marklettermarkup command.
-
medium(*text)¶ The
\mediummarkup command.
-
natural()¶ The
\naturalmarkup command.
-
normal_size_sub(*text)¶ The
\normal-size-submarkup command.
-
normal_size_super(*text)¶ The
\normal-size-supermarkup command.
-
normal_text(*text)¶ The
\normal-textmarkup command.
-
normalsize(*text)¶ The
\normalsizemarkup command.
-
note(duration, direction)[source]¶ The
\notemarkup command.The
durationcan be a markup object containing a word that is a duration, e.g.4..(for LilyPond >= 2.22) or a Scheme string like#"4.."(for LilyPond < 2.22).The
directionis a floating point value; the sign is the stem direction, the value the stem length.
-
null()¶ The
\nullmarkup command.
-
number(*text)¶ The
\numbermarkup command.
-
on_the_fly(arg, *text)¶ The
\on-the-flymarkup command.
-
oval(*text)¶ The
\ovalmarkup command.
-
overlay(*text)¶ The
\overlaymarkup command.
-
override(prop, value, *args)[source]¶ The
\overridemarkup command.The
propshould be a string, thevaluea Scheme value (Python bool, int or float are handled automatically).
-
override_lines(prop, value, *args)[source]¶ The
\override-linescommand.The
propshould be a string, thevaluea Scheme value (Python bool, int or float are handled automatically).
-
overtie(*text)¶ The
\overtiemarkup command.
-
pad_around(arg, *text)¶ The
\pad-aroundmarkup command.
-
pad_markup(arg, *text)¶ The
\pad-markupmarkup command.
-
pad_x(arg, *text)¶ The
\pad-xmarkup command.
-
page_link(arg, *text)¶ The
\page-linkmarkup command.
-
parenthesize(*text)¶ The
\parenthesizemarkup command.
-
path(arg, *text)¶ The
\pathmarkup command.
-
pattern(arg1, arg2, arg3, *text)¶ The
\patternmarkup command.
-
property_recursive(*text)¶ The
\property-recursivemarkup command.
-
put_adjacent(arg1, arg2, arg3, *text)¶ The
\put-adjacentmarkup command.
-
raise_(arg, *text)¶ The
\raisemarkup command.
-
replace(arg, *text)¶ The
\replacemarkup command.
-
rest(duration)[source]¶ The
\restmarkup command.The
durationcan be a markup object containing a word that is a duration, e.g.4..(for LilyPond >= 2.22) or a Scheme string like#"4.."(for LilyPond < 2.22).
-
rest_by_number(arg, *text)¶ The
\rest-by-numbermarkup command.
-
right_align(*text)¶ The
\right-alignmarkup command.
-
right_brace(*text)¶ The
\right-bracemarkup command.
-
right_column(*text)¶ The
\right-columnmarkup command.
-
roman(*text)¶ The
\romanmarkup command.
-
rotate(arg, *text)¶ The
\rotatemarkup command.
-
rounded_box(*text)¶ The
\rounded-boxmarkup command.
-
sans(*text)¶ The
\sansmarkup command.
-
scale(arg, *text)¶ The
\scalemarkup command.
-
score(*elements)[source]¶ The
\scoremarkup command.You may give Header, Layout and general Music nodes.
-
score_lines(*elements)[source]¶ The
\score-linesmarkup command.You may give Header, Layout and general Music nodes.
-
semiflat()¶ The
\semiflatmarkup command.
-
semisharp()¶ The
\semisharpmarkup command.
-
sesquiflat()¶ The
\sesquiflatmarkup command.
-
sesquisharp()¶ The
\sesquisharpmarkup command.
-
sharp()¶ The
\sharpmarkup command.
-
simple(*text)¶ The
\simplemarkup command.
-
slashed_digit(*text)¶ The
\slashed-digitmarkup command.
-
small(*text)¶ The
\smallmarkup command.
-
smallCaps(*text)¶ The
\smallCapsmarkup command.
-
smaller(*text)¶ The
\smallermarkup command.
-
stdBase(*text)¶ The
\stdBasemarkup command.
-
stdBaseIV(*text)¶ The
\stdBaseIVmarkup command.
-
stdBaseV(*text)¶ The
\stdBaseVmarkup command.
-
stdBaseVI(*text)¶ The
\stdBaseVImarkup command.
-
stencil(*text)¶ The
\stencilmarkup command.
-
strut()¶ The
\strutmarkup command.
-
sub(*text)¶ The
\submarkup command.
-
super(*text)¶ The
\supermarkup command.
-
table(arg, *text)¶ The
\tablemarkup command.
-
table_of_contents()¶ The
\table-of-contentsmarkup command.
-
teeny(*text)¶ The
\teenymarkup command.
-
text(*text)¶ The
\textmarkup command.
-
tie(*text)¶ The
\tiemarkup command.
-
tiny(*text)¶ The
\tinymarkup command.
-
transparent(*text)¶ The
\transparentmarkup command.
-
triangle(*text)¶ The
\trianglemarkup command.
-
typewriter(*text)¶ The
\typewritermarkup command.
-
underline(*text)¶ The
\underlinemarkup command.
-
undertie(*text)¶ The
\undertiemarkup command.
-
unless(arg, *text)¶ The
\unlessmarkup command.
-
upright(*text)¶ The
\uprightmarkup command.
-
vcenter(*text)¶ The
\vcentermarkup command.
-
vspace(*text)¶ The
\vspacemarkup command.
-
whiteout(*text)¶ The
\whiteoutmarkup command.
-
with_color(arg, *text)¶ The
\with-colormarkup command.
-
with_dimensions_from(arg, *text)¶ The
\with-dimensions-frommarkup command.
-
with_outline(arg, *text)¶ The
\with-outlinemarkup command.
-
wordwrap(*text)¶ The
\wordwrapmarkup command.