Giter Site home page Giter Site logo

scn-latex-plugin's People

Contributors

alexandrzagorskiy avatar mksmorlov avatar nikitazotov avatar smousy avatar vaskho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

scn-latex-plugin's Issues

Add macros documentation

There are a lot of macros in this plugin, so it'd be perfect to add documentation that structures 'em all

Можно внести улучшения в файл macros_translator.h

  1. Следует использовать пространства имен для идентификации пользовательских классов и функций, чтобы избежать возможных конфликтов имен. Убедитесь, что класс ScDirectory и другие классы из пользовательского кода находятся в соответствующем пространстве имен.

  2. При работе с файловой системой, такой как std::filesystem, рекомендуется добавить проверки наличия файлов и директорий перед их использованием. Это поможет избежать ошибок, связанных с отсутствующими файлами или некорректными путями.

  3. В функции TranslateText, после чтения файла с помощью std::ifstream, рекомендуется добавить проверку на успешное чтение файла. Если чтение файла не удалось, должно быть выброшено исключение или предприняты другие соответствующие действия.

  4. Рекомендую добавить обработку ошибок и исключений в функции Run. Если происходит ошибка при выполнении операций внутри Run, следует вернуть false или выбросить исключение, чтобы указать, что выполнение не удалось.

Можно внести некоторые изменения в данный C++ файл: macros_translator.cpp

В функции TranslateText, после открытия файла с помощью std::ifstream, необходимо добавить проверку на успешное открытие файла. Если файл не удалось открыть, должно быть выброшено исключение или предприняты другие соответствующие действия.

Fix hardcoded russian language

There are some macros like \scnsegmentheader, \scsection and so on that create russian text as default. We should find better solution for that purpose (variables or smth like that)

Add more environments for belonging and inclusion relations

There are lack of environments for inclusion and belonging representations. Despite necessary output might be created via another way, it's a very complicated to read and understand such constructions. These are:

  • belongs on the role
  • included on the role
    And macro for creation of the local set with list inside.

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.