Coder Social home page Coder Social logo

yegor256 / texsc Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 1.0 94 KB

Spell checking for LaTeX documents with the help of GNU aspell

Home Page: https://rubygems.org/gems/texsc

License: MIT License

Ruby 79.01% Gherkin 20.99%
latex spellchecker aspell ruby ruby-gem latex-package spell-check spell-checker spelling-correction

texsc's Introduction

EO principles respected here DevOps By Rultor.com We recommend RubyMine

rake PDD status Gem Version Maintainability License Test Coverage Hits-of-Code

Read this blog post: Spell Check Your LaTeX Writings Using GNU Aspell

This tool simplies the usage of GNU aspell (you must have it installed) for spell-checking of LaTeX files.

First, you install it:

$ gem install texsc

Then, you just run it like this for your LaTeX files:

$ texsc article.tex

You may ignore certain tags or environments using --ignore option

$ texsc --ignore=citet,citep --ignore=newminted article.tex

You can specify the method of ignoring, as aspell suggests (by default it's 'p'):

$ texsc --ignore=newminted:opp article.tex

You may also use your own additional dictionary, via --pws option. The file must contain one word per line: they will be ignored during spell checking. Don't forget that the first line of the file must contain this:

personal_ws-1.1 en 1 utf-8

To make configuration easier, you can create .texsc file next to your .tex file and place all your command line configuration options over there, each one on its own line. You can also have a global configuration file at ~/.texsc, which will be read first.

How to contribute

Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:

$ bundle update
$ bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.

texsc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

texsc's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

bundler
Gemfile
  • cucumber '9.2.0'
  • rake '13.2.1'
  • rubocop '1.63.1'
  • rubocop-rspec '2.29.1'
  • simplecov '0.22.0'
github-actions
.github/workflows/codecov.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • ruby/setup-ruby v1
  • codecov/codecov-action v4.0.0-beta.3
  • ubuntu 22.04
.github/workflows/rake.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • ruby/setup-ruby v1

  • Check this box to trigger a request for Renovate to run again on this repository

broken parsing of command line

Due to mistake in command line

Traceback (most recent call last):
	9: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `<main>'
	8: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `load'
	7: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/texsc-0.1.0/bin/texsc:36:in `<top (required)>'
	6: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop.rb:23:in `parse'
	5: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/options.rb:72:in `parse'
	4: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/parser.rb:49:in `parse'
	3: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/parser.rb:49:in `each_with_index'
	2: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/parser.rb:49:in `each'
	1: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/parser.rb:59:in `block in parse'
/Users/yegor/.rvm/gems/ruby-2.6.0/gems/slop-4.8.1/lib/slop/parser.rb:131:in `try_process': unknown option `--ignorenewminted:opp' (Slop::UnknownOption)
	3: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `<main>'
	2: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `load'
	1: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/texsc-0.1.0/bin/texsc:35:in `<top (required)>'
/Users/yegor/.rvm/gems/ruby-2.6.0/gems/texsc-0.1.0/bin/texsc:54:in `rescue in <top (required)>': unknown option `--ignorenewminted:opp' (RuntimeError)
	3: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `<main>'
	2: from /Users/yegor/.rvm/gems/ruby-2.6.0/bin/texsc:23:in `load'
	1: from /Users/yegor/.rvm/gems/ruby-2.6.0/gems/texsc-0.1.0/bin/texsc:33:in `<top (required)>'
/Users/yegor/.rvm/gems/ruby-2.6.0/gems/texsc-0.1.0/bin/texsc:95:in `rescue in <top (required)>': undefined method `[]' for nil:NilClass (NoMethodError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.