limarka 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github_changelog_generator +6 -0
- data/.gitignore +201 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +77 -0
- data/CODE_OF_CONDUCT.md +71 -0
- data/Gemfile +4 -0
- data/ISSUE_TEMPLATE.md +8 -0
- data/LICENSE +21 -0
- data/README.md +33 -0
- data/Rakefile +58 -0
- data/anexos.md +9 -0
- data/apendices.md +9 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/configuracao.odt +0 -0
- data/errata.md +6 -0
- data/exe/limarka +7 -0
- data/imagens/configuracao/agradecimentos.png +0 -0
- data/imagens/configuracao/capa.png +0 -0
- data/imagens/configuracao/capitulos-e-secoes.png +0 -0
- data/imagens/configuracao/consulta-vigencia-normas-abnt.png +0 -0
- data/imagens/configuracao/dedicatoria.png +0 -0
- data/imagens/configuracao/epigrafe.png +0 -0
- data/imagens/configuracao/errata.png +0 -0
- data/imagens/configuracao/folha-de-aprovacao.png +0 -0
- data/imagens/configuracao/folha-de-rosto.png +0 -0
- data/imagens/configuracao/lista-nao-ordenada.png +0 -0
- data/imagens/configuracao/lista-ordenada-numericamente1.png +0 -0
- data/imagens/configuracao/lista-ordenada-por-letras-parentese.png +0 -0
- data/imagens/configuracao/lista-ordenada-por-letras-ponto.png +0 -0
- data/imagens/configuracao/lista-siglas.png +0 -0
- data/imagens/configuracao/lista-simbolos.png +0 -0
- data/imagens/configuracao/mapa-arquivos.mm +130 -0
- data/imagens/configuracao/mapa-arquivos.svg +908 -0
- data/imagens/configuracao/trabalho-academico-elementos.png +0 -0
- data/imagens/ficha-catalografica.odt +0 -0
- data/imagens/ficha-catalografica.pdf +0 -0
- data/imagens/folha-de-aprovacao-escaneada.pdf +0 -0
- data/imagens/passaro.jpg +0 -0
- data/lib/limarka/cli.rb +124 -0
- data/lib/limarka/configuracao.rb +46 -0
- data/lib/limarka/conversor.rb +238 -0
- data/lib/limarka/pdfconf.rb +186 -0
- data/lib/limarka/trabalho.rb +170 -0
- data/lib/limarka/version.rb +3 -0
- data/lib/limarka.rb +8 -0
- data/limarka.gemspec +35 -0
- data/referencias.bib +344 -0
- data/templates/README.md +17 -0
- data/templates/configuracao-tecnica.yaml +10 -0
- data/templates/postextual1-referencias.latex +10 -0
- data/templates/postextual2-glossario.latex +7 -0
- data/templates/postextual3-apendices.latex +22 -0
- data/templates/postextual4-anexos.latex +16 -0
- data/templates/postextual5-indice.latex +8 -0
- data/templates/pretextual1-folha_de_rosto.latex +24 -0
- data/templates/pretextual10-lista_tabelas.latex +14 -0
- data/templates/pretextual11-lista_siglas.latex +14 -0
- data/templates/pretextual12-lista_simbolos.latex +15 -0
- data/templates/pretextual13-sumario.latex +8 -0
- data/templates/pretextual2-errata.latex +17 -0
- data/templates/pretextual3-folha_de_aprovacao.latex +68 -0
- data/templates/pretextual4-dedicatoria.latex +15 -0
- data/templates/pretextual5-agradecimentos.latex +11 -0
- data/templates/pretextual6-epigrafe.latex +15 -0
- data/templates/pretextual7-resumo.latex +17 -0
- data/templates/pretextual8-abstract.latex +41 -0
- data/templates/pretextual9-lista_ilustracoes.latex +12 -0
- data/templates/trabalho-academico.latex +266 -0
- data/trabalho-academico.md +79 -0
- metadata +258 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4e81e9fb7ab1a5345d2feb776e012ed8757954f0
|
4
|
+
data.tar.gz: 923a53d79a612a541cee3ec1ec6a2368c4d8904a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f6a4ec252ff8d4382f67a948ce1485a8c08d0e98ccc3138ae7a9be0480284df68e132ad7a01c2cd43ab07a51b682f8be737a51ee4d30cf6f26a2bd911d75bd01
|
7
|
+
data.tar.gz: b8ab8e483dde30ae3903c985549004331b227a83b5055d83b828005b927c099d942036fb4031ab49a5a13649033682e316fa27077c2673ec79e689aab7c630c0
|
data/.gitignore
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
## Core latex/pdflatex auxiliary files:
|
2
|
+
*.aux
|
3
|
+
*.lof
|
4
|
+
*.log
|
5
|
+
*.lot
|
6
|
+
*.fls
|
7
|
+
*.out
|
8
|
+
*.toc
|
9
|
+
*.fmt
|
10
|
+
*.fot
|
11
|
+
*.cb
|
12
|
+
*.cb2
|
13
|
+
*.out.ps
|
14
|
+
|
15
|
+
## Intermediate documents:
|
16
|
+
*.dvi
|
17
|
+
*-converted-to.*
|
18
|
+
# these rules might exclude image files for figures etc.
|
19
|
+
# *.ps
|
20
|
+
# *.eps
|
21
|
+
# *.pdf
|
22
|
+
|
23
|
+
## Bibliography auxiliary files (bibtex/biblatex/biber):
|
24
|
+
*.bbl
|
25
|
+
*.bcf
|
26
|
+
*.blg
|
27
|
+
*-blx.aux
|
28
|
+
*-blx.bib
|
29
|
+
*.brf
|
30
|
+
*.run.xml
|
31
|
+
|
32
|
+
## Build tool auxiliary files:
|
33
|
+
*.fdb_latexmk
|
34
|
+
*.synctex
|
35
|
+
*.synctex.gz
|
36
|
+
*.synctex.gz(busy)
|
37
|
+
*.pdfsync
|
38
|
+
|
39
|
+
## Auxiliary and intermediate files from other packages:
|
40
|
+
# algorithms
|
41
|
+
*.alg
|
42
|
+
*.loa
|
43
|
+
|
44
|
+
# achemso
|
45
|
+
acs-*.bib
|
46
|
+
|
47
|
+
# amsthm
|
48
|
+
*.thm
|
49
|
+
|
50
|
+
# beamer
|
51
|
+
*.nav
|
52
|
+
*.snm
|
53
|
+
*.vrb
|
54
|
+
|
55
|
+
# cprotect
|
56
|
+
*.cpt
|
57
|
+
|
58
|
+
# fixme
|
59
|
+
*.lox
|
60
|
+
|
61
|
+
#(r)(e)ledmac/(r)(e)ledpar
|
62
|
+
*.end
|
63
|
+
*.?end
|
64
|
+
*.[1-9]
|
65
|
+
*.[1-9][0-9]
|
66
|
+
*.[1-9][0-9][0-9]
|
67
|
+
*.[1-9]R
|
68
|
+
*.[1-9][0-9]R
|
69
|
+
*.[1-9][0-9][0-9]R
|
70
|
+
*.eledsec[1-9]
|
71
|
+
*.eledsec[1-9]R
|
72
|
+
*.eledsec[1-9][0-9]
|
73
|
+
*.eledsec[1-9][0-9]R
|
74
|
+
*.eledsec[1-9][0-9][0-9]
|
75
|
+
*.eledsec[1-9][0-9][0-9]R
|
76
|
+
|
77
|
+
# glossaries
|
78
|
+
*.acn
|
79
|
+
*.acr
|
80
|
+
*.glg
|
81
|
+
*.glo
|
82
|
+
*.gls
|
83
|
+
*.glsdefs
|
84
|
+
|
85
|
+
# gnuplottex
|
86
|
+
*-gnuplottex-*
|
87
|
+
|
88
|
+
# hyperref
|
89
|
+
*.brf
|
90
|
+
|
91
|
+
# knitr
|
92
|
+
*-concordance.tex
|
93
|
+
# TODO Comment the next line if you want to keep your tikz graphics files
|
94
|
+
*.tikz
|
95
|
+
*-tikzDictionary
|
96
|
+
|
97
|
+
# listings
|
98
|
+
*.lol
|
99
|
+
|
100
|
+
# makeidx
|
101
|
+
*.idx
|
102
|
+
*.ilg
|
103
|
+
*.ind
|
104
|
+
*.ist
|
105
|
+
|
106
|
+
# minitoc
|
107
|
+
*.maf
|
108
|
+
*.mlf
|
109
|
+
*.mlt
|
110
|
+
*.mtc
|
111
|
+
*.mtc[0-9]
|
112
|
+
*.mtc[1-9][0-9]
|
113
|
+
|
114
|
+
# minted
|
115
|
+
_minted*
|
116
|
+
*.pyg
|
117
|
+
|
118
|
+
# morewrites
|
119
|
+
*.mw
|
120
|
+
|
121
|
+
# mylatexformat
|
122
|
+
*.fmt
|
123
|
+
|
124
|
+
# nomencl
|
125
|
+
*.nlo
|
126
|
+
|
127
|
+
# sagetex
|
128
|
+
*.sagetex.sage
|
129
|
+
*.sagetex.py
|
130
|
+
*.sagetex.scmd
|
131
|
+
|
132
|
+
# sympy
|
133
|
+
*.sout
|
134
|
+
*.sympy
|
135
|
+
sympy-plots-for-*.tex/
|
136
|
+
|
137
|
+
# pdfcomment
|
138
|
+
*.upa
|
139
|
+
*.upb
|
140
|
+
|
141
|
+
# pythontex
|
142
|
+
*.pytxcode
|
143
|
+
pythontex-files-*/
|
144
|
+
|
145
|
+
# thmtools
|
146
|
+
*.loe
|
147
|
+
|
148
|
+
# TikZ & PGF
|
149
|
+
*.dpth
|
150
|
+
*.md5
|
151
|
+
*.auxlock
|
152
|
+
|
153
|
+
# todonotes
|
154
|
+
*.tdo
|
155
|
+
|
156
|
+
# xindy
|
157
|
+
*.xdy
|
158
|
+
|
159
|
+
# xypic precompiled matrices
|
160
|
+
*.xyc
|
161
|
+
|
162
|
+
# endfloat
|
163
|
+
*.ttt
|
164
|
+
*.fff
|
165
|
+
|
166
|
+
# Latexian
|
167
|
+
TSWLatexianTemp*
|
168
|
+
|
169
|
+
## Editors:
|
170
|
+
# WinEdt
|
171
|
+
*.bak
|
172
|
+
*.sav
|
173
|
+
|
174
|
+
# Texpad
|
175
|
+
.texpadtmp
|
176
|
+
|
177
|
+
# Kile
|
178
|
+
*.backup
|
179
|
+
|
180
|
+
# KBibTeX
|
181
|
+
*~[0-9]*
|
182
|
+
|
183
|
+
*~
|
184
|
+
configuracao.pdf
|
185
|
+
templates/postextual.tex
|
186
|
+
templates/pretextual.tex
|
187
|
+
templates/preambulo.tex
|
188
|
+
templates/configuracao.yaml
|
189
|
+
xxx-*
|
190
|
+
/.bundle/
|
191
|
+
/.yardoc
|
192
|
+
/Gemfile.lock
|
193
|
+
/_yardoc/
|
194
|
+
/coverage/
|
195
|
+
/doc/
|
196
|
+
/pkg/
|
197
|
+
/spec/reports/
|
198
|
+
/tmp/
|
199
|
+
master.bib
|
200
|
+
./configuracao.yaml
|
201
|
+
.emacs.desktop*
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.3.0](https://github.com/abntex/limarka/tree/0.3.0) (2016-11-02)
|
4
|
+
[Full Changelog](https://github.com/abntex/limarka/compare/0.2.0...0.3.0)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- Correção do Sumário quando a lista de siglas está vazia [\#20](https://github.com/abntex/limarka/issues/20)
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- Inclusão de simbolos [\#62](https://github.com/abntex/limarka/issues/62)
|
13
|
+
- Emite mensagem de erro se não encontrar arquivo configuracao.yaml [\#61](https://github.com/abntex/limarka/issues/61)
|
14
|
+
- Remoção de comandos antigos [\#60](https://github.com/abntex/limarka/issues/60)
|
15
|
+
- Remoção do parâmetro de configuração técnica [\#59](https://github.com/abntex/limarka/issues/59)
|
16
|
+
- Seleção do sistema de referências: Numérico vs Alfabético [\#57](https://github.com/abntex/limarka/issues/57)
|
17
|
+
- Testes automatizados do template [\#56](https://github.com/abntex/limarka/issues/56)
|
18
|
+
- Seleção da Lista de tabelas [\#55](https://github.com/abntex/limarka/issues/55)
|
19
|
+
- Seleção da Lista de ilustrações [\#54](https://github.com/abntex/limarka/issues/54)
|
20
|
+
- Operação exec permite verbosidade [\#53](https://github.com/abntex/limarka/issues/53)
|
21
|
+
- Seleção da Folha de aprovação [\#52](https://github.com/abntex/limarka/issues/52)
|
22
|
+
- Permite exportar configuração para YAML [\#51](https://github.com/abntex/limarka/issues/51)
|
23
|
+
- Permite importar texto do word [\#50](https://github.com/abntex/limarka/issues/50)
|
24
|
+
- Arquivo de saída depende do nível de educação configurado [\#49](https://github.com/abntex/limarka/issues/49)
|
25
|
+
- Texto do propóstio do trabalho personalizável [\#48](https://github.com/abntex/limarka/issues/48)
|
26
|
+
- Adição dos campos Área de concentração e Linha de pesquisa [\#47](https://github.com/abntex/limarka/issues/47)
|
27
|
+
- Templates baseados exclusivamente no abnTeX2 [\#46](https://github.com/abntex/limarka/issues/46)
|
28
|
+
- Referências só serão possíveis com arquivo bibtex [\#43](https://github.com/abntex/limarka/issues/43)
|
29
|
+
- Atualização de dependência pdf-forms [\#42](https://github.com/abntex/limarka/issues/42)
|
30
|
+
- Se title de referência possui ":" cria um subtitle [\#41](https://github.com/abntex/limarka/issues/41)
|
31
|
+
- Possibilitar configurar o caminho do arquivo de referências biblatex [\#40](https://github.com/abntex/limarka/issues/40)
|
32
|
+
- Apresentar mensagem de erro amigável quando executada fora do diretório do projeto [\#38](https://github.com/abntex/limarka/issues/38)
|
33
|
+
- Seleção do tipo de Referências abortado [\#36](https://github.com/abntex/limarka/issues/36)
|
34
|
+
- Título das figuras na parte superior [\#35](https://github.com/abntex/limarka/issues/35)
|
35
|
+
- Configuração de proposta ou projeto [\#33](https://github.com/abntex/limarka/issues/33)
|
36
|
+
- Tornar o projeto atrativo a desenvolvedores [\#31](https://github.com/abntex/limarka/issues/31)
|
37
|
+
- Organizar documentação do projeto [\#21](https://github.com/abntex/limarka/issues/21)
|
38
|
+
|
39
|
+
## [0.2.0](https://github.com/abntex/limarka/tree/0.2.0) (2016-08-17)
|
40
|
+
[Full Changelog](https://github.com/abntex/limarka/compare/0.1.0...0.2.0)
|
41
|
+
|
42
|
+
**Closed issues:**
|
43
|
+
|
44
|
+
- TDD: tornar o projeto testável [\#30](https://github.com/abntex/limarka/issues/30)
|
45
|
+
- Criar executável do sistema [\#29](https://github.com/abntex/limarka/issues/29)
|
46
|
+
- Configuração e geração da Errata [\#32](https://github.com/abntex/limarka/issues/32)
|
47
|
+
- Apêndices [\#28](https://github.com/abntex/limarka/issues/28)
|
48
|
+
- Anexos [\#27](https://github.com/abntex/limarka/issues/27)
|
49
|
+
- Referências [\#26](https://github.com/abntex/limarka/issues/26)
|
50
|
+
- Tornar o projeto administrável com o bundle [\#24](https://github.com/abntex/limarka/issues/24)
|
51
|
+
- Renomear o repositório para limarka [\#23](https://github.com/abntex/limarka/issues/23)
|
52
|
+
- Sumário [\#19](https://github.com/abntex/limarka/issues/19)
|
53
|
+
- Lista de símbolos [\#18](https://github.com/abntex/limarka/issues/18)
|
54
|
+
- Lista de abreviaturas e siglas [\#17](https://github.com/abntex/limarka/issues/17)
|
55
|
+
- Lista de tabelas [\#16](https://github.com/abntex/limarka/issues/16)
|
56
|
+
- Lista de ilustrações [\#15](https://github.com/abntex/limarka/issues/15)
|
57
|
+
- Resumos \(obrigatório\) [\#14](https://github.com/abntex/limarka/issues/14)
|
58
|
+
- Epígrafe \(opcional\) [\#13](https://github.com/abntex/limarka/issues/13)
|
59
|
+
- Agradecimentos \(opcional\) [\#12](https://github.com/abntex/limarka/issues/12)
|
60
|
+
- Dedicatória [\#11](https://github.com/abntex/limarka/issues/11)
|
61
|
+
- Manter configuração na master [\#10](https://github.com/abntex/limarka/issues/10)
|
62
|
+
- Configuração e geração do pre-textual [\#7](https://github.com/abntex/limarka/issues/7)
|
63
|
+
|
64
|
+
## [0.1.0](https://github.com/abntex/limarka/tree/0.1.0) (2016-07-15)
|
65
|
+
**Closed issues:**
|
66
|
+
|
67
|
+
- Gerenciar changelog com github\_changelog\_generator [\#9](https://github.com/abntex/limarka/issues/9)
|
68
|
+
- Esconder arquivos que usuário não utiliza [\#8](https://github.com/abntex/limarka/issues/8)
|
69
|
+
- Corrigir dependência do pdf-forms [\#6](https://github.com/abntex/limarka/issues/6)
|
70
|
+
- Elaboração do formulário PDF em branch separada [\#5](https://github.com/abntex/limarka/issues/5)
|
71
|
+
- Implementação da ficha catalográfica e folha de aprovação [\#3](https://github.com/abntex/limarka/issues/3)
|
72
|
+
- Configurações serão realizadas em arquivo PDF [\#2](https://github.com/abntex/limarka/issues/2)
|
73
|
+
- Fornecer informações básicas sobre o projeto [\#1](https://github.com/abntex/limarka/issues/1)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# Código de Conduta para Colaboradores
|
2
|
+
|
3
|
+
## Nossa promessa
|
4
|
+
|
5
|
+
Com o interesse de fomentar uma comunidade aberta e acolhedora,
|
6
|
+
nós, como colaboradores e administradores deste projeto, comprometemo-nos
|
7
|
+
a fazer a participação deste projeto uma experiência livre de assédio
|
8
|
+
para todos, independentemente da aparência pessoal, deficiência,
|
9
|
+
diferença corporal, etnia, gênero, idade, identidade ou expressão
|
10
|
+
de gênero, identidade ou orientação sexual, nacionalidade, nível de
|
11
|
+
experiência, raça ou religião.
|
12
|
+
|
13
|
+
## Nossos padrões
|
14
|
+
|
15
|
+
Exemplos de comportamentos que contribuem a criar um ambiente positivo incluem:
|
16
|
+
|
17
|
+
* Usar linguagem acolhedora e inclusiva
|
18
|
+
* Respeitar pontos de vista e experiencias diferentes
|
19
|
+
* Aceitar crítica construtíva com graça
|
20
|
+
* Focar no que é melhor para a comunidade
|
21
|
+
* Mostrar empatia com outros membros da comunidade
|
22
|
+
|
23
|
+
Exemplos de comportamentos inaceitáveis por parte dos participantes incluem:
|
24
|
+
|
25
|
+
* Uso de linguagem ou imagens sexuais e atenção ou avanço sexual indesejada
|
26
|
+
* Comentários insultuosos e/ou depreciativos e ataques pessoais ou políticos (*Trolling*)
|
27
|
+
* Assédio público ou privado
|
28
|
+
* Publicar informação pessoal de outros sem permissão explícita, como, por exemplo, um endereço eletrônico ou residencial
|
29
|
+
* Qualquer outra forma de conduta que pode ser razoavelmente considerada inapropriada num ambiente profissional
|
30
|
+
|
31
|
+
## Nossas responsibilidades
|
32
|
+
|
33
|
+
Os administradores do projeto são responsáveis por esclareçer os padrões de
|
34
|
+
comportamento e deverão tomar ação corretiva apropriada e justa em resposta
|
35
|
+
a qualquer instância de comportamento inaceitável.
|
36
|
+
|
37
|
+
Os administradores do projeto têm o direito e a responsabilidade de
|
38
|
+
remover, editar ou rejeitar comentários, commits, código, edições
|
39
|
+
na wiki, erros ou outras formas de contribuição que não estejam de
|
40
|
+
acordo com este Código de Conduta, bem como banir temporariamente ou
|
41
|
+
permanentemente qualquer colaborador por qualquer outro comportamento
|
42
|
+
que se considere impróprio, perigoso, ofensivo ou problemático.
|
43
|
+
|
44
|
+
## Escopo
|
45
|
+
|
46
|
+
Este Código de Conduta aplica-se dentro dos espaços do projeto ou
|
47
|
+
qualquer espaço público onde alguém represente o mesmo ou a sua
|
48
|
+
comunidade. Exemplos de representação do projeto ou comunidade incluem
|
49
|
+
usar um endereço de email oficial do projeto, postar por uma conta de
|
50
|
+
mídia social oficial, ou agir como um representante designado num evento
|
51
|
+
online ou offline. A representação de um projeto pode ser ainda definida e
|
52
|
+
esclarecida pelos administradores do projeto.
|
53
|
+
|
54
|
+
## Aplicação
|
55
|
+
|
56
|
+
Comportamento abusivo, de assédio ou de outros tipos pode ser
|
57
|
+
comunicados contatando a equipe do projeto (https://www.facebook.com/eduardosantanamedeiros).
|
58
|
+
Todas as queixas serão revistas e investigadas e
|
59
|
+
resultarão numa resposta necessária e apropriada à situação.
|
60
|
+
A equipe é obrigada a manter a confidencialidade em relação
|
61
|
+
ao elemento que reportou o incidente. Demais detalhes de
|
62
|
+
políticas de aplicação podem ser postadas separadamente.
|
63
|
+
|
64
|
+
Administradores do projeto que não sigam ou não mantenham o Código
|
65
|
+
de Conduta em boa fé podem enfrentar repercussões temporárias ou permanentes
|
66
|
+
determinadas por outros membros da liderança do projeto.
|
67
|
+
|
68
|
+
## Atribuição
|
69
|
+
|
70
|
+
Este Código de Conduta é adaptado do [Contributor Covenant](http://contributor-covenant.org),
|
71
|
+
versão 1.4, disponível em [http://contributor-covenant.org/version/1/4/pt_br/](http://contributor-covenant.org/version/1/4/pt_br/)
|
data/Gemfile
ADDED
data/ISSUE_TEMPLATE.md
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Eduardo de Santana Medeiros Alexandre
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Limarka
|
2
|
+
|
3
|
+
Gere o PDF do seu trabalho de conclusão de curso (monografia, dissertação ou teste), formatado automaticamente com as normas da ABNT, escrevendo-o no formato Markdown.
|
4
|
+
|
5
|
+
# Informações técnicas
|
6
|
+
|
7
|
+
- Escreva o texto utilizando a linguagem Markdown
|
8
|
+
- O texto será convertido em Latex, através da ferramenta [pandoc](http://pandoc.org) e templates baseados no [abntex2](http://www.abntex.net.br)
|
9
|
+
- O código Latex é compilado e gerado o PDF em conformidade com as normas mais recentes da ABNT.
|
10
|
+
|
11
|
+
|
12
|
+
# Documentação
|
13
|
+
|
14
|
+
A documentação do projeto será mantida no [wiki](https://github.com/abntex/limarka/wiki)
|
15
|
+
|
16
|
+
|
17
|
+
# Origem do projeto
|
18
|
+
|
19
|
+
O projeto tem como origem uma pesquisa científica sobre utilização de linguagem de marcação de texto para elaboração de monografias (em andamento).
|
20
|
+
|
21
|
+
# Development
|
22
|
+
|
23
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
24
|
+
|
25
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
26
|
+
|
27
|
+
# Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/abntex/limarka. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
30
|
+
|
31
|
+
# License
|
32
|
+
|
33
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require "rspec/core/rake_task"
|
4
|
+
require 'limarka/version'
|
5
|
+
require 'colorize'
|
6
|
+
require 'open3'
|
7
|
+
require 'yaml'
|
8
|
+
require 'rake/clean'
|
9
|
+
require 'pdf_forms'
|
10
|
+
require 'github_changelog_generator/task'
|
11
|
+
|
12
|
+
|
13
|
+
desc 'Executa os testes rápidos, que não possuem a tag :lento'
|
14
|
+
RSpec::Core::RakeTask.new('spec:fast') do |t|
|
15
|
+
t.rspec_opts = "--tag ~lento"
|
16
|
+
end
|
17
|
+
|
18
|
+
RSpec::Core::RakeTask.new(:spec)
|
19
|
+
|
20
|
+
task :default => [:configuracao_padrao, 'spec:fast']
|
21
|
+
|
22
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
23
|
+
config.future_release = Limarka::VERSION
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
# http://stackoverflow.com/questions/19841865/ruby-gem-to-extract-form-data-from-fillable-pdf
|
28
|
+
# https://github.com/jkraemer/pdf-forms/blob/master/test/pdf_test.rb
|
29
|
+
|
30
|
+
namespace :pdf do
|
31
|
+
## "Imprime a configuração em PDF"
|
32
|
+
task :test => ["configuracao.pdf"] do
|
33
|
+
@pdftk = PdfForms.new 'pdftk'
|
34
|
+
pdf = PdfForms::Pdf.new 'configuracao.pdf', @pdftk, utf8_fields: true
|
35
|
+
puts "Fields: #{pdf.fields}"
|
36
|
+
puts "Título do tabalho: #{pdf.field('title').value}"
|
37
|
+
puts "Autor: #{pdf.field('autor').value}"
|
38
|
+
puts "Ano: #{pdf.field('date').value}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
desc 'Cria configuração padrão para execução dos testes, o libreoffice precisa está fechado!'
|
43
|
+
task :configuracao_padrao do
|
44
|
+
system "libreoffice --headless --convert-to pdf configuracao.odt"
|
45
|
+
system 'bundle', 'exec', 'limarka', 'configuracao', 'exporta', '-o', 'spec/configuracao_padrao'
|
46
|
+
end
|
47
|
+
|
48
|
+
directory 'dissertacao-limarka/output'
|
49
|
+
|
50
|
+
desc 'Compila dissertação'
|
51
|
+
task :dissertacao => 'dissertacao-limarka/output' do
|
52
|
+
system 'bundle', 'exec', 'limarka', 'exec', '-i', 'dissertacao-limarka', '-o', 'dissertacao-limarka/output'
|
53
|
+
end
|
54
|
+
|
55
|
+
PREAMBULO="templates/preambulo.tex"
|
56
|
+
PRETEXTUAL = "templates/pretextual.tex"
|
57
|
+
POSTEXTUAL = "templates/postextual.tex"
|
58
|
+
CLEAN.include(["xxx-*",PREAMBULO,PRETEXTUAL,POSTEXTUAL,"templates/configuracao.yaml",'tmp'])
|
data/anexos.md
ADDED
data/apendices.md
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "limarka"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/configuracao.odt
ADDED
Binary file
|
data/errata.md
ADDED
data/exe/limarka
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|