https://bugs.freedesktop.org/show_bug.cgi?id=41083
Summary: Hyphenation doesn't honour minimum word length in
Basic
Product: LibreOffice
Version: LibO 3.4.3 release
Platform: x86-64 (AMD64)
OS/Version: Windows (All)
Status: NEW
Severity: normal
Priority: medium
Component: Libreoffice
AssignedTo: [email protected]
ReportedBy: [email protected]
Hyphenation in Basic doesn't seem to take option (translated from German)
Options
Language configuration
Linguistic
Options
Minimum word length for hyphenation
into account. The word 'radio' is hyphenated whatever value the option is set
to. Options 'Leading characters' and 'Trailing characters' are honoured,
though. Setting them to three or four, resp., prevents hyphenation.
Thanks,
Stephan Hennig
Sub Main
Dim oHyphen As Object
Dim oLocale As New com.sun.star.lang.Locale
Dim emptyArgs() As New com.sun.star.beans.PropertyValue
Dim vReturn
Dim sWord, sHyphWord As String
Dim msg As String
oHyphen = createUnoService("com.sun.star.linguistic2.Hyphenator")
oLocale.Language = "en"
oLocale.Country = "US"
sWord = "radio"
vReturn = oHyphen.createPossibleHyphens(sWord, oLocale, emptyArgs())
If IsNull(vReturn) Then
sHyphWord = "Null"
Else
sHyphWord = vReturn.getPossibleHyphens()
End If
msg = "Hyphenating " & sWord & CHR$(10) & _
"Result: " & sHyphWord & CHR$(10)
MsgBox msg, 0, "Hyphenate Words"
End Sub
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs