2024-11-18 09:33:05 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
2017-10-21 13:50:30 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
|
|
|
|
2021-09-17 15:13:14 +10:00
|
|
|
#include <sal/config.h>
|
|
|
|
|
2021-09-28 15:55:43 +02:00
|
|
|
#include <QtGraphics.hxx>
|
|
|
|
#include <QtFontFace.hxx>
|
|
|
|
#include <QtFont.hxx>
|
|
|
|
#include <QtPainter.hxx>
|
2017-10-21 13:50:30 +00:00
|
|
|
|
|
|
|
#include <vcl/fontcharmap.hxx>
|
2018-07-05 18:24:28 +02:00
|
|
|
#include <unx/geninst.h>
|
|
|
|
#include <unx/fontmanager.hxx>
|
2019-01-23 19:57:58 +01:00
|
|
|
#include <unx/glyphcache.hxx>
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2018-05-10 12:48:13 +02:00
|
|
|
#include <sallayout.hxx>
|
2021-09-14 00:17:06 +10:00
|
|
|
#include <font/PhysicalFontCollection.hxx>
|
2017-10-31 01:10:36 +01:00
|
|
|
|
2018-02-20 12:29:37 +01:00
|
|
|
#include <QtGui/QGlyphRun>
|
2017-10-31 01:10:36 +01:00
|
|
|
#include <QtGui/QFontDatabase>
|
2017-10-30 19:05:41 +01:00
|
|
|
#include <QtGui/QRawFont>
|
2017-10-31 01:10:36 +01:00
|
|
|
#include <QtCore/QStringList>
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
void QtGraphics::SetTextColor(Color nColor) { m_aTextColor = nColor; }
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
void QtGraphics::SetFont(LogicalFontInstance* pReqFont, int nFallbackLevel)
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2017-10-30 19:05:41 +01:00
|
|
|
// release the text styles
|
|
|
|
for (int i = nFallbackLevel; i < MAX_FALLBACK; ++i)
|
|
|
|
{
|
|
|
|
if (!m_pTextStyle[i])
|
|
|
|
break;
|
2018-06-10 05:59:31 +02:00
|
|
|
m_pTextStyle[i].clear();
|
2017-10-30 19:05:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!pReqFont)
|
2017-12-26 15:58:21 +01:00
|
|
|
return;
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
m_pTextStyle[nFallbackLevel] = static_cast<QtFont*>(pReqFont);
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2023-07-03 10:52:34 +03:00
|
|
|
void QtGraphics::GetFontMetric(FontMetricDataRef& rFMD, int nFallbackLevel)
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2017-10-30 19:05:41 +01:00
|
|
|
QRawFont aRawFont(QRawFont::fromFont(*m_pTextStyle[nFallbackLevel]));
|
2021-09-28 15:02:47 +02:00
|
|
|
QtFontFace::fillAttributesFromQFont(*m_pTextStyle[nFallbackLevel], *rFMD);
|
2017-10-30 19:05:41 +01:00
|
|
|
|
2019-08-25 14:12:15 +02:00
|
|
|
rFMD->ImplCalcLineSpacing(m_pTextStyle[nFallbackLevel].get());
|
2022-05-01 13:50:00 +08:00
|
|
|
rFMD->ImplInitBaselines(m_pTextStyle[nFallbackLevel].get());
|
2017-10-30 19:05:41 +01:00
|
|
|
|
2018-07-05 18:38:07 +02:00
|
|
|
rFMD->SetSlant(0);
|
2017-10-30 19:05:41 +01:00
|
|
|
rFMD->SetWidth(aRawFont.averageCharWidth());
|
|
|
|
|
2018-05-10 15:46:06 +02:00
|
|
|
rFMD->SetMinKashida(m_pTextStyle[nFallbackLevel]->GetKashidaWidth());
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
FontCharMapRef QtGraphics::GetFontCharMap() const
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2017-12-26 15:14:31 +00:00
|
|
|
if (!m_pTextStyle[0])
|
2017-10-30 19:05:41 +01:00
|
|
|
return FontCharMapRef(new FontCharMap());
|
2020-09-07 23:56:20 +02:00
|
|
|
return m_pTextStyle[0]->GetFontFace()->GetFontCharMap();
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
bool QtGraphics::GetFontCapabilities(vcl::FontCapabilities& rFontCapabilities) const
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2017-12-26 15:14:31 +00:00
|
|
|
if (!m_pTextStyle[0])
|
2017-10-30 19:05:41 +01:00
|
|
|
return false;
|
2020-09-07 23:56:20 +02:00
|
|
|
return m_pTextStyle[0]->GetFontFace()->GetFontCapabilities(rFontCapabilities);
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2021-09-14 00:17:06 +10:00
|
|
|
void QtGraphics::GetDevFontList(vcl::font::PhysicalFontCollection* pPFC)
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2023-12-24 00:18:40 +01:00
|
|
|
static const bool bUseFontconfig = (nullptr == getenv("SAL_VCL_QT_NO_FONTCONFIG"));
|
2018-07-05 18:24:28 +02:00
|
|
|
|
2017-10-31 01:10:36 +01:00
|
|
|
if (pPFC->Count())
|
|
|
|
return;
|
|
|
|
|
2019-11-18 13:56:55 +01:00
|
|
|
FreetypeManager& rFontManager = FreetypeManager::get();
|
2019-01-23 19:57:58 +01:00
|
|
|
psp::PrintFontManager& rMgr = psp::PrintFontManager::get();
|
|
|
|
::std::vector<psp::fontID> aList;
|
|
|
|
|
|
|
|
rMgr.getFontList(aList);
|
2023-08-01 16:38:14 +00:00
|
|
|
for (auto const& nFontId : aList)
|
2018-07-05 18:24:28 +02:00
|
|
|
{
|
2023-08-01 16:38:14 +00:00
|
|
|
auto const* pFont = rMgr.getFont(nFontId);
|
|
|
|
if (!pFont)
|
2019-01-23 19:57:58 +01:00
|
|
|
continue;
|
|
|
|
|
2019-11-18 13:56:55 +01:00
|
|
|
// normalize face number to the FreetypeManager
|
2023-08-01 16:38:14 +00:00
|
|
|
int nFaceNum = rMgr.getFontFaceNumber(nFontId);
|
|
|
|
int nVariantNum = rMgr.getFontFaceVariation(nFontId);
|
2019-01-23 19:57:58 +01:00
|
|
|
|
2019-11-18 13:56:55 +01:00
|
|
|
// inform FreetypeManager about this font provided by the PsPrint subsystem
|
2023-08-01 16:38:14 +00:00
|
|
|
FontAttributes aFA = pFont->m_aFontAttributes;
|
|
|
|
aFA.IncreaseQualityBy(4096);
|
2024-11-12 21:03:31 +02:00
|
|
|
const OString aFileName = rMgr.getFontFileSysPath(nFontId);
|
|
|
|
rFontManager.AddFontFile(aFileName, nFaceNum, nVariantNum, nFontId, aFA);
|
2019-01-23 19:57:58 +01:00
|
|
|
}
|
2018-07-05 18:24:28 +02:00
|
|
|
|
2019-01-23 19:57:58 +01:00
|
|
|
if (bUseFontconfig)
|
2018-07-05 18:24:28 +02:00
|
|
|
SalGenericInstance::RegisterFontSubstitutors(pPFC);
|
|
|
|
|
2022-06-01 10:11:24 +02:00
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
|
|
for (auto& family : QFontDatabase::families())
|
|
|
|
for (auto& style : QFontDatabase::styles(family))
|
|
|
|
pPFC->Add(QtFontFace::fromQFontDatabase(family, style));
|
|
|
|
#else
|
|
|
|
QFontDatabase aFDB;
|
2017-10-31 01:10:36 +01:00
|
|
|
for (auto& family : aFDB.families())
|
|
|
|
for (auto& style : aFDB.styles(family))
|
2021-09-28 15:02:47 +02:00
|
|
|
pPFC->Add(QtFontFace::fromQFontDatabase(family, style));
|
2022-06-01 10:11:24 +02:00
|
|
|
#endif
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
void QtGraphics::ClearDevFontCache() {}
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2021-09-14 00:17:06 +10:00
|
|
|
bool QtGraphics::AddTempDevFont(vcl::font::PhysicalFontCollection*, const OUString& /*rFileURL*/,
|
2021-09-28 15:02:47 +02:00
|
|
|
const OUString& /*rFontName*/)
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
Extend loplugin:external to warn about classes
...following up on 314f15bff08b76bf96acf99141776ef64d2f1355 "Extend
loplugin:external to warn about enums".
Cases where free functions were moved into an unnamed namespace along with a
class, to not break ADL, are in:
filter/source/svg/svgexport.cxx
sc/source/filter/excel/xelink.cxx
sc/source/filter/excel/xilink.cxx
svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
All other free functions mentioning moved classes appear to be harmless and not
give rise to (silent, even) ADL breakage. (One remaining TODO in
compilerplugins/clang/external.cxx is that derived classes are not covered by
computeAffectedTypes, even though they could also be affected by ADL-breakage---
but don't seem to be in any acutal case across the code base.)
For friend declarations using elaborate type specifiers, like
class C1 {};
class C2 { friend class C1; };
* If C2 (but not C1) is moved into an unnamed namespace, the friend declaration
must be changed to not use an elaborate type specifier (i.e., "friend C1;"; see
C++17 [namespace.memdef]/3: "If the name in a friend declaration is neither
qualified nor a template-id and the declaration is a function or an
elaborated-type-specifier, the lookup to determine whether the entity has been
previously declared shall not consider any scopes outside the innermost
enclosing namespace.")
* If C1 (but not C2) is moved into an unnamed namespace, the friend declaration
must be changed too, see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71882>
"elaborated-type-specifier friend not looked up in unnamed namespace".
Apart from that, to keep changes simple and mostly mechanical (which should help
avoid regressions), out-of-line definitions of class members have been left in
the enclosing (named) namespace. But explicit specializations of class
templates had to be moved into the unnamed namespace to appease
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598> "explicit specialization of
template from unnamed namespace using unqualified-id in enclosing namespace".
Also, accompanying declarations (of e.g. typedefs or static variables) that
could arguably be moved into the unnamed namespace too have been left alone.
And in some cases, mention of affected types in blacklists in other loplugins
needed to be adapted.
And sc/qa/unit/mark_test.cxx uses a hack of including other .cxx, one of which
is sc/source/core/data/segmenttree.cxx where e.g. ScFlatUInt16SegmentsImpl is
not moved into an unnamed namespace (because it is declared in
sc/inc/segmenttree.hxx), but its base ScFlatSegmentsImpl is. GCC warns about
such combinations with enabled-by-default -Wsubobject-linkage, but "The compiler
doesn’t give this warning for types defined in the main .C file, as those are
unlikely to have multiple definitions."
(<https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Warning-Options.html>) The
warned-about classes also don't have multiple definitions in the given test, so
disable the warning when including the .cxx.
Change-Id: Ib694094c0d8168be68f8fe90dfd0acbb66a3f1e4
Reviewed-on: https://gerrit.libreoffice.org/83239
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-19 16:32:49 +01:00
|
|
|
namespace
|
|
|
|
{
|
2021-09-28 15:02:47 +02:00
|
|
|
class QtCommonSalLayout : public GenericSalLayout
|
2018-07-05 18:38:07 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-09-28 15:02:47 +02:00
|
|
|
QtCommonSalLayout(LogicalFontInstance& rLFI)
|
2018-07-05 18:38:07 +02:00
|
|
|
: GenericSalLayout(rLFI)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-10-20 07:27:44 +02:00
|
|
|
void SetOrientation(Degree10 nOrientation) { mnOrientation = nOrientation; }
|
2018-07-05 18:38:07 +02:00
|
|
|
};
|
Extend loplugin:external to warn about classes
...following up on 314f15bff08b76bf96acf99141776ef64d2f1355 "Extend
loplugin:external to warn about enums".
Cases where free functions were moved into an unnamed namespace along with a
class, to not break ADL, are in:
filter/source/svg/svgexport.cxx
sc/source/filter/excel/xelink.cxx
sc/source/filter/excel/xilink.cxx
svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
All other free functions mentioning moved classes appear to be harmless and not
give rise to (silent, even) ADL breakage. (One remaining TODO in
compilerplugins/clang/external.cxx is that derived classes are not covered by
computeAffectedTypes, even though they could also be affected by ADL-breakage---
but don't seem to be in any acutal case across the code base.)
For friend declarations using elaborate type specifiers, like
class C1 {};
class C2 { friend class C1; };
* If C2 (but not C1) is moved into an unnamed namespace, the friend declaration
must be changed to not use an elaborate type specifier (i.e., "friend C1;"; see
C++17 [namespace.memdef]/3: "If the name in a friend declaration is neither
qualified nor a template-id and the declaration is a function or an
elaborated-type-specifier, the lookup to determine whether the entity has been
previously declared shall not consider any scopes outside the innermost
enclosing namespace.")
* If C1 (but not C2) is moved into an unnamed namespace, the friend declaration
must be changed too, see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71882>
"elaborated-type-specifier friend not looked up in unnamed namespace".
Apart from that, to keep changes simple and mostly mechanical (which should help
avoid regressions), out-of-line definitions of class members have been left in
the enclosing (named) namespace. But explicit specializations of class
templates had to be moved into the unnamed namespace to appease
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598> "explicit specialization of
template from unnamed namespace using unqualified-id in enclosing namespace".
Also, accompanying declarations (of e.g. typedefs or static variables) that
could arguably be moved into the unnamed namespace too have been left alone.
And in some cases, mention of affected types in blacklists in other loplugins
needed to be adapted.
And sc/qa/unit/mark_test.cxx uses a hack of including other .cxx, one of which
is sc/source/core/data/segmenttree.cxx where e.g. ScFlatUInt16SegmentsImpl is
not moved into an unnamed namespace (because it is declared in
sc/inc/segmenttree.hxx), but its base ScFlatSegmentsImpl is. GCC warns about
such combinations with enabled-by-default -Wsubobject-linkage, but "The compiler
doesn’t give this warning for types defined in the main .C file, as those are
unlikely to have multiple definitions."
(<https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Warning-Options.html>) The
warned-about classes also don't have multiple definitions in the given test, so
disable the warning when including the .cxx.
Change-Id: Ib694094c0d8168be68f8fe90dfd0acbb66a3f1e4
Reviewed-on: https://gerrit.libreoffice.org/83239
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-19 16:32:49 +01:00
|
|
|
}
|
2018-07-05 18:38:07 +02:00
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
std::unique_ptr<GenericSalLayout> QtGraphics::GetTextLayout(int nFallbackLevel)
|
2017-10-21 13:50:30 +00:00
|
|
|
{
|
2019-01-23 19:59:45 +01:00
|
|
|
assert(m_pTextStyle[nFallbackLevel]);
|
2018-09-30 16:10:58 +02:00
|
|
|
if (!m_pTextStyle[nFallbackLevel])
|
|
|
|
return nullptr;
|
2021-09-28 15:02:47 +02:00
|
|
|
return std::make_unique<QtCommonSalLayout>(*m_pTextStyle[nFallbackLevel]);
|
2017-10-21 13:50:30 +00:00
|
|
|
}
|
|
|
|
|
2021-12-22 15:49:52 +00:00
|
|
|
static QRawFont GetRawFont(const QFont& rFont, bool bWithoutHintingInTextDirection)
|
|
|
|
{
|
|
|
|
QFont::HintingPreference eHinting = rFont.hintingPreference();
|
2023-11-23 14:31:10 +01:00
|
|
|
static bool bAllowDefaultHinting = getenv("SAL_ALLOW_DEFAULT_HINTING") != nullptr;
|
2021-12-22 15:49:52 +00:00
|
|
|
bool bAllowedHintStyle
|
2023-11-23 14:31:10 +01:00
|
|
|
= !bWithoutHintingInTextDirection || bAllowDefaultHinting
|
2021-12-22 15:49:52 +00:00
|
|
|
|| (eHinting == QFont::PreferNoHinting || eHinting == QFont::PreferVerticalHinting);
|
|
|
|
if (bWithoutHintingInTextDirection && !bAllowedHintStyle)
|
|
|
|
{
|
|
|
|
QFont aFont(rFont);
|
|
|
|
aFont.setHintingPreference(QFont::PreferVerticalHinting);
|
|
|
|
return QRawFont::fromFont(aFont);
|
|
|
|
}
|
|
|
|
return QRawFont::fromFont(rFont);
|
|
|
|
}
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
void QtGraphics::DrawTextLayout(const GenericSalLayout& rLayout)
|
2018-02-20 12:29:37 +01:00
|
|
|
{
|
2021-09-28 15:02:47 +02:00
|
|
|
const QtFont* pFont = static_cast<const QtFont*>(&rLayout.GetFont());
|
2018-02-20 12:29:37 +01:00
|
|
|
assert(pFont);
|
2023-07-17 12:27:03 +03:00
|
|
|
QRawFont aRawFont(GetRawFont(*pFont, rLayout.GetSubpixelPositioning()));
|
2018-02-20 12:29:37 +01:00
|
|
|
|
|
|
|
QVector<quint32> glyphIndexes;
|
|
|
|
QVector<QPointF> positions;
|
|
|
|
|
2018-07-05 18:38:07 +02:00
|
|
|
// prevent glyph rotation inside the SalLayout
|
|
|
|
// probably better to add a parameter to GetNextGlyphs?
|
2021-09-28 15:02:47 +02:00
|
|
|
QtCommonSalLayout* pQtLayout
|
|
|
|
= static_cast<QtCommonSalLayout*>(const_cast<GenericSalLayout*>(&rLayout));
|
2020-10-20 07:27:44 +02:00
|
|
|
Degree10 nOrientation = rLayout.GetOrientation();
|
2018-07-05 18:38:07 +02:00
|
|
|
if (nOrientation)
|
2021-09-28 15:02:47 +02:00
|
|
|
pQtLayout->SetOrientation(0_deg10);
|
2018-07-05 18:38:07 +02:00
|
|
|
|
2023-07-19 08:50:50 +03:00
|
|
|
basegfx::B2DPoint aPos;
|
2018-02-20 12:29:37 +01:00
|
|
|
const GlyphItem* pGlyph;
|
|
|
|
int nStart = 0;
|
|
|
|
while (rLayout.GetNextGlyph(&pGlyph, aPos, nStart))
|
|
|
|
{
|
2019-07-05 22:12:39 +02:00
|
|
|
glyphIndexes.push_back(pGlyph->glyphId());
|
2022-01-11 19:51:54 +00:00
|
|
|
positions.push_back(QPointF(aPos.getX(), aPos.getY()));
|
2018-02-20 12:29:37 +01:00
|
|
|
}
|
|
|
|
|
2020-10-27 16:41:30 +01:00
|
|
|
// seems to be common to try to layout an empty string...
|
|
|
|
if (positions.empty())
|
|
|
|
return;
|
|
|
|
|
2018-07-05 18:38:07 +02:00
|
|
|
if (nOrientation)
|
2021-09-28 15:02:47 +02:00
|
|
|
pQtLayout->SetOrientation(nOrientation);
|
2018-07-05 18:38:07 +02:00
|
|
|
|
2018-02-20 12:29:37 +01:00
|
|
|
QGlyphRun aGlyphRun;
|
|
|
|
aGlyphRun.setPositions(positions);
|
|
|
|
aGlyphRun.setGlyphIndexes(glyphIndexes);
|
|
|
|
aGlyphRun.setRawFont(aRawFont);
|
|
|
|
|
2021-09-28 15:02:47 +02:00
|
|
|
QtPainter aPainter(*m_pBackend);
|
2018-05-17 12:55:55 +02:00
|
|
|
QColor aColor = toQColor(m_aTextColor);
|
2018-02-20 12:29:37 +01:00
|
|
|
aPainter.setPen(aColor);
|
2018-07-05 18:38:07 +02:00
|
|
|
|
|
|
|
if (nOrientation)
|
|
|
|
{
|
|
|
|
// make text position the center of the rotation
|
|
|
|
// then rotate and move back
|
|
|
|
QRect window = aPainter.window();
|
|
|
|
window.moveTo(-positions[0].x(), -positions[0].y());
|
|
|
|
aPainter.setWindow(window);
|
|
|
|
|
|
|
|
QTransform p;
|
2020-10-20 07:27:44 +02:00
|
|
|
p.rotate(-static_cast<qreal>(nOrientation.get()) / 10.0);
|
2018-07-05 18:38:07 +02:00
|
|
|
p.translate(-positions[0].x(), -positions[0].y());
|
|
|
|
aPainter.setTransform(p);
|
|
|
|
}
|
|
|
|
|
2018-02-20 12:29:37 +01:00
|
|
|
aPainter.drawGlyphRun(QPointF(), aGlyphRun);
|
|
|
|
}
|
2017-10-21 13:50:30 +00:00
|
|
|
|
2024-11-18 09:33:05 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|