Skip to content

Commit

Permalink
Merge pull request #130 from matze-dd/Version-1.2.0
Browse files Browse the repository at this point in the history
Version 1.2.0
  • Loading branch information
matze-dd authored Nov 22, 2020
2 parents e68f307 + 74ee136 commit 53e4ae9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
6 changes: 4 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Work in progress
----------------
Version 1.2.0 (2020/11/22)
--------------------------
- LaTeX macros / environments
- package babel: added environments otherlanguage\(\*\)
(issue [#114](../../issues/114))
- builtins
- fixed \\usepackage, now accepts multiple package names
(issue [#121](../../issues/121))
- added macros \\LaTeX, \\TeX (issue [#124](../../issues/124))
- Vim compiler scripts ltyc.vim and vlty.vim: small change for compatibility
with vim-dispatch
- yalafi.shell
- added support for multi-language documents (issue [#98](../../issues/98))
- new options --multi-language, --ml-continue-threshold, --ml-rule-threshold,
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ let g:vimtex_grammar_vlty = {}
let g:vimtex_grammar_vlty.lt_directory = '~/lib/LanguageTool-5.0'
" let g:vimtex_grammar_vlty.lt_command = 'languagetool'
let g:vimtex_grammar_vlty.server = 'my'
let g:vimtex_grammar_vlty.show_suggestions = 1
let g:vimtex_grammar_vlty.shell_options =
\ ' --multi-language'
\ . ' --packages "*"'
Expand All @@ -413,8 +414,10 @@ let g:vimtex_grammar_vlty.shell_options =
not necessary.
- The option `g:vimtex_grammar_vlty.server = 'my'` usually results in faster
checks for small to medium LaTeX files.
When one uses the LanguageTool server, speed also benefits from its internal
sentence caching.
Start-up time is saved, and speed benefits from the internal sentence caching
of the server.
- Saying `let g:vimtex_grammar_vlty.show_suggestions = 1` causes display of
LanguageTool's replacement suggestions.
- With option `--multi-language`, commands from LaTeX package 'babel' switch
the language for the proofreading program.
See section [Multi-language documents](#multi-language-documents).
Expand Down Expand Up @@ -470,6 +473,7 @@ map <F9> :w <bar> compiler ltyc <bar> make <bar> :cw <cr><esc>
let g:ltyc_ltdirectory = '~/lib/LanguageTool-5.0'
" let g:ltyc_ltcommand = 'languagetool'
let g:ltyc_server = 'my'
let g:ltyc_showsuggestions = 1
let g:ltyc_language = 'de-DE'
let g:ltyc_shelloptions =
\ ' --multi-language'
Expand Down
6 changes: 4 additions & 2 deletions editors/ltyc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ let &l:makeprg =

let &l:errorformat = '%I=== %f ===,%C%*\d.) Line %l\, column %v\, Rule ID:%.%#,'
if g:ltyc_showsuggestions == 0
let &l:errorformat .= '%ZMessage: %m,%-G%.%#'
" final duplicated '%-G%.%#': compatibility with vim-dispatch;
" see issue #199 of vim-dispatch and issue #1854 of vimtex
let &l:errorformat .= '%ZMessage: %m,%-G%.%#,%-G%.%#'
else
let &l:errorformat .= '%CMessage: %m,%Z%m,%-G%.%#'
let &l:errorformat .= '%CMessage: %m,%Z%m,%-G%.%#,%-G%.%#'
endif

silent CompilerSet makeprg
Expand Down
6 changes: 4 additions & 2 deletions editors/vlty.vim
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ silent CompilerSet makeprg

let &l:errorformat = '%I=== %f ===,%C%*\d.) Line %l\, column %v\, Rule ID:%.%#,'
if s:vlty.show_suggestions == 0
let &l:errorformat .= '%ZMessage: %m,%-G%.%#'
" final duplicated '%-G%.%#': compatibility with vim-dispatch;
" see issue #199 of vim-dispatch and issue #1854 of vimtex
let &l:errorformat .= '%ZMessage: %m,%-G%.%#,%-G%.%#'
else
let &l:errorformat .= '%CMessage: %m,%Z%m,%-G%.%#'
let &l:errorformat .= '%CMessage: %m,%Z%m,%-G%.%#,%-G%.%#'
endif
silent CompilerSet errorformat

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="yalafi",
version="1.1.7",
version="1.2.0",
author="Matthias Baumann",
description="Yet another LaTeX filter",
long_description=long_description,
Expand Down

0 comments on commit 53e4ae9

Please sign in to comment.