For exports based on LaTeX, consecutive hyphens are only converted to endash
and emdash if the current font family is not typewriter, and if none of the
parent insets is an IPA inset. Now this is done for XHTML export as well.
if (style.pass_thru || runparams.pass_thru)
xs << c;
if (style.pass_thru || runparams.pass_thru)
xs << c;
+ else if (c == '-' && !runparams.inIPA &&
+ font.fontInfo().family() != TYPEWRITER_FAMILY) {
docstring str;
int j = i + 1;
if (j < size() && d->text_[j] == '-') {
docstring str;
int j = i + 1;
if (j < size() && d->text_[j] == '-') {
+docstring InsetIPA::xhtml(XHTMLStream & xs, OutputParams const & runparams_in) const
+{
+ OutputParams runparams(runparams_in);
+ runparams.inIPA = true;
+ return InsetText::xhtml(xs, runparams);
+}
+
+
bool InsetIPA::insetAllowed(InsetCode code) const
{
switch (code) {
bool InsetIPA::insetAllowed(InsetCode code) const
{
switch (code) {
///
void latex(otexstream &, OutputParams const &) const;
///
///
void latex(otexstream &, OutputParams const &) const;
///
+ docstring xhtml(XHTMLStream & xs, OutputParams const &) const;
+ ///
void validate(LaTeXFeatures & features) const;
///
bool allowSpellCheck() const { return false; }
void validate(LaTeXFeatures & features) const;
///
bool allowSpellCheck() const { return false; }