Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaz-utashiro/app-diff2vba
Generate VBA patch script from diff output
https://github.com/kaz-utashiro/app-diff2vba
Last synced: 8 days ago
JSON representation
Generate VBA patch script from diff output
- Host: GitHub
- URL: https://github.com/kaz-utashiro/app-diff2vba
- Owner: kaz-utashiro
- License: other
- Created: 2021-02-10T09:20:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T05:18:21.000Z (11 months ago)
- Last Synced: 2024-11-08T07:17:21.171Z (2 months ago)
- Language: Perl
- Size: 120 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Actions Status](https://github.com/kaz-utashiro/App-diff2vba/workflows/test/badge.svg)](https://github.com/kaz-utashiro/App-diff2vba/actions) [![MetaCPAN Release](https://badge.fury.io/pl/App-diff2vba.svg)](https://metacpan.org/release/App-diff2vba)
# NAMEdiff2vba - generate VBA patch script from diff output
# SYNOPSIS
optex -Mtextconv diff -u A.docx B.docx | diff2vba > patch.vba
greple -Mmsdoc -Msubst \
--all-sample-dict --diff some.docx | diff2vba > patch.vba# VERSION
Version 1.00
# DESCRIPTION
**diff2vba** is a command to generate VBA patch script from diff output.
# OPTIONS
- **--maxlen**=_n_
Because VBA script does not accept string longer than 255 characters,
longer string have to be splitted into shorter ones. This option
specifies maximum length. Default is 250.- **--adjust**=_n_
Adjust border when the splitted strings are slightly different.
Default value is 2, so they are adjusted upto two characters. Set
zero to disable it.- **--subname**=_name_
Set subroutine name in the VBA script.
Default is `Patch`.- **--identical**
Produce patch script for identical string.
Default is false.- **--reverse**
Generate reverse order patch.
# INSTALL
## CPANMINUS
Install from CPAN
cpanm App::diff2vba
# SEE ALSO
[App::diff2vba](https://metacpan.org/pod/App%3A%3Adiff2vba), [https://github.com/kaz-utashiro/App-diff2vba](https://github.com/kaz-utashiro/App-diff2vba)
[App::Greple](https://metacpan.org/pod/App%3A%3AGreple), [https://github.com/kaz-utashiro/greple](https://github.com/kaz-utashiro/greple)
[App::Greple::msdoc](https://metacpan.org/pod/App%3A%3AGreple%3A%3Amsdoc), [https://github.com/kaz-utashiro/greple-msdoc](https://github.com/kaz-utashiro/greple-msdoc)
[App::Greple::subst](https://metacpan.org/pod/App%3A%3AGreple%3A%3Asubst), [https://github.com/kaz-utashiro/greple-subst](https://github.com/kaz-utashiro/greple-subst)
[App::optex::textconv](https://metacpan.org/pod/App%3A%3Aoptex%3A%3Atextconv), [https://github.com/kaz-utashiro/optex-textconv](https://github.com/kaz-utashiro/optex-textconv)
[https://qiita.com/kaz-utashiro/items/06c60843213b0f024df7](https://qiita.com/kaz-utashiro/items/06c60843213b0f024df7),
[https://qiita.com/kaz-utashiro/items/85add653a71a7e01c415](https://qiita.com/kaz-utashiro/items/85add653a71a7e01c415)# AUTHOR
Kazumasa Utashiro
# LICENSE
Copyright 2021-2024 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.