Giter VIP home page Giter VIP logo

dokuwiki-plugin-icalevents's Introduction

LTEX LS — LTEX Language Server

version numberrelease date

vscode-ltex  CI status  stars  open issues closed issues
ltex-ls  CI status  coverage  stars  open issues closed issues

LTEX LS (LTEX Language Server) implements a language server according to the Language Server Protocol (LSP) and provides grammar and spelling errors in markup documents (LATEX, Markdown, etc.). The documents are checked with LanguageTool.

Typically, you start the language server (either locally or remotely), you send the language server your LATEX or Markdown document, and it will respond with a list of the grammar and spelling errors in it. To use LTEX LS in this way, you have to use a language client (usually an editor or an extension of the editor) that communicates with LTEX LS according to the LSP.

However, it is also possible to supply LTEX LS paths to files and directories to be checked as command-line arguments. In this mode, LTEX LS will print the results to standard output, and no language client is necessary.

The reference language client of LTEX LS is the LTEX extension for Visual Studio Code (vscode-ltex), whose development LTEX LS follows closely and vice versa.

Find more information (how to install, how to use, etc.) at the website of LTEX.

Features

  • Supported markup languages: BibTEX, ConTEXt, Git commit messages, LATEX, Markdown, Org, Quarto, reStructuredText, R Markdown, R Sweave, XHTML
  • Comment checking in many popular programming languages (optional, opt-in)
  • Comes with everything included, no need to install Java or LanguageTool
  • Offline checking: Does not upload anything to the internet
  • Supports over 20 languages: English, French, German, Dutch, Chinese, Russian, etc.
  • Replacement suggestions via quick fixes
  • Completion support for English and German
  • User dictionaries
  • Multilingual support with babel commands or magic comments
  • Possibility to use external LanguageTool servers
  • Extensive documentation

dokuwiki-plugin-icalevents's People

Contributors

glensc avatar intervisionlord avatar real-or-random avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dokuwiki-plugin-icalevents's Issues

Consider recurrent events

The plugin doesn't handle properly recurrent events. Here is an example you can try easily, with both the Google rendering and text view by the plugin for easy comparison :

{{iCalEvents>https://calendar.google.com/calendar/ical/2lmeg74hmnd78fqns881nl05rg%40group.calendar.google.com/public/basic.ics#from=today}}
<html>
<iframe src="https://calendar.google.com/calendar/embed?src=2lmeg74hmnd78fqns881nl05rg%40group.calendar.google.com&ctz=Europe/Paris" style="width:800px;height:500px;"/>
</html>

Roughly, the cases are those ones:

  • Test 1 defined for a given number of repetition
  • Test 2 defined until a date
  • Test 3 defined as "1st wednesday of the month"

requires php 5.4

using static:: or self:: or $this-> in closures requires php 5.4:

you should add that to release notes of 2016-08-17

$this can be workarounded as using $that:

$that = $this;
function($comp) use ($that) {
  $that->foo();
);

not sure about static:: or self::

Rewrite documentation

The documentation only documents the old options.

Also, the plugin configuration should be documented at least in English.

Version 2017-04-16 is not working with PHP 5.6.30-0+deb8u1, needs php 7

After installation, dokuwiki stops working with a blank page.

Immediate fix: delete icalevents in .../lib/plugins

Findings:
fatal php Error in sabre functions.php
[26-Apr-2017 11:37:46 Europe/Berlin] PHP Warning: Unsupported declare 'strict_types' in /var/www/XXX/li
b/plugins/icalevents/vendor/sabre/uri/lib/functions.php on line 1
[26-Apr-2017 11:37:46 Europe/Berlin] PHP Parse error: syntax error, unexpected ':', expecting '{' in /var/www
/XXX/lib/plugins/icalevents/vendor/sabre/uri/lib/functions.php on line 23

Reason:
sabre library bundled with the 2017-04-16 release needs php 7 (strict mode and function return type declarations)

Fix: download and unzip previous version, which works well

Broken link to `lib/plugins/icalevents/ics.png` when using Doku's internal "Nice URL" engine

When using DokuWiki's internal "Nice URL" engine, the path of the "Add to calendar" image is broken as it's a relative link:

.../doku.php?id=page turns to .../doku.php/page/ which changes the path to a virtual subdirectory (and more, when using namespaces). This breaks the path of the image in this file, this line.

Maybe there is a function to get the base directory to build the link on that, or simply use an inline base64 as used for the other native links?

Sabre declared twice when using davcal

We currently have a problem when this plugin and caldav are both installed, as both bring (some) sabre parts. The error message is:

PHP message: PHP Fatal error:  Cannot redeclare Sabre\Uri\split() (previously declared in /var/www/dokuwiki/lib/plugins/icalevents/vendor/sabre/uri/lib/functions.php:279) in /var/www/dokuwiki/lib/plugins/davcal/vendor/sabre/uri/lib/functions.php on line 250

I am unsure how to resolve this. Would it be possible to only conditionally (i.e. only when not already loaded) load sabre?

Feature - Locale settings

Hello.

What are you think about implementing locale settings to display date and time on user prefered language?

Now i am using a row setlocale(LC_ALL, "ru_RU.UTF-8"); in syntax-impl.php, but what if this setting could be selected via admin menu or would be defined in localization file?

Support for local media files

Currently, it's only possible to fetch an iCalendar file via HTTP. This is unnecessary if the file resides in the local wiki. It also creates an authentication problem for private wikis.

500 when using "from" and "to" args

The dokuwiki page contains:

{{iCalEvents>[googlecalendarurl]#showAs=list&from=today&to=+7 days&sort=desc&dformat=%d.%m.%y}}

the apache log says:

[Sat Jun 10 14:22:35.900582 2017] [:error] [pid 2033] [client 217.249.24.41:52858] PHP Fatal error: Uncaught Error: Call to a member function getIterator() on null in [wwwpath]/lib/plugins/icalevents/syntax-impl.php:218\nStack trace:\n#0 [wwwpath]/inc/parser/renderer.php(105): syntax_plugin_icalevents->render('metadata', Object(Doku_Renderer_metadata), Array)\n#1 /[wwwpath]/inc/parserutils.php(495): Doku_Renderer- >plugin('icalevents', Array, 5, '{{iCalEvents>ht...')\n#2 [wwwpath]/inc/parserutils.php(270): p_render_metadata('[dokuwikipath]:...', Array)\n#3 [wwwpath]/inc/common.php(251): p_get_metadata('[dokuwikipath]:...')\n#4 [wwwpath]/doku.php(91): pageinfo()\n#5 {main}\n thrown in [wwwpath]/lib/plugins/icalevents/syntax-impl.php on line 218

When I remove the &from=today&to=+7 days part, everything works.
The plugin is on the newest version (installed with the dokuwiki webinterface).

Thanks in advance.

Time zone is not correctly exported

I import events from a google calndar.
Time is not correctly reported, always anticipated (by 1 or 2 hours).
I set a +2h offset in my google calendar.

I can I deal with this issue?
Thanks and best regards,
Alessandro

Examples in documentation

I've been looking for plugins to evaluate, and this looks promising, but from my current connection I can't really install a test instance. Is it possible to have either a demonstration site or screenshots on the plugin page, please?

dformat support lost

there was dformat support in older version that was respected from event parameters:


{{iCalEvents>https://www.google.com/calendar/ical/..../basic.ics#from=2 month ago&showEndDates=1&showCurrentWeek=1&dformat=%Y-%m-%d %H:%M:%S <b>(%V)</b>}}

this seems no longer have effect with 2016-08-17 release.

note: yes, it's configurable globally, but i used to configure it per instance to have different look

evaluate sabre-vobject

i came across to this library when investigating what is the iCalcreator library being used: https://github.com/fruux/sabre-vobject

few benefits i see:

altho latest version requires php 5.5 might be an issue considering dokuwiki itself requires php 5.3 as minimum version

but there's older 3.5 series which requires just php 5.3

if you see the library fit, i see the integration as:

  • create composer.json: composer require sabre/vobject "^3.5"
  • add it to version control: git add composer.json && git commit -a
  • install deps: composer install
  • require vendor/autoload.php to initialize deps in code
  • include vendor/* in release .zip

i actually use such method in eventum plugin. have look at the project Makefile of the zip build process

Consider status:cancelled

Events with STATUS:CANCELLED should be invisible in DokuWiki or should have some special formatting at least. The same applies to STATUS:TENTATIVE

Adjust timezone offset

I was using iCalendar, then saw the recommendation to change to iCalEvents, but my events come up shifted eleven hours earlier than they should.

I'm using wiggio.com to generate the calendar. I'm in Australia which is roughly UTC+10 depending on daylight savings time.

An example is here: http://providencehomeschool.org/doku.php?id=bug_squish

It's especially awkward when it changes the date of the event.

Maintainer needed

I think it's pretty obvious from the commit history that the project is currently dead. The last commit is from 2019 and the one before that is from 2017, and there's effectively no activity.

Apparently the code is still working but at some point it won't work any longer or it won't be secure any longer.

I'm personally not willing to contribute further because I have different priorities. @glensc What about you?

Here are some (not necessarily disjoint) options I can think of:

  • Make @glensc the owner and I'll leave the project.
  • Look for a new maintainer, maybe here and on the mailing list.
  • Try to figure out if anyone is still using this, again maybe on the mailing list.
  • Archive the project.
  • Turn this into maintenance mode, where PRs are accepted and reviewed but nothing else.
  • Do nothing.

category evaluation

A feature request really:

Has somebody found a way to evaluate the categories of calendar events (e.g. of an ics export from Horde5)?
Or: Has - by any chance - somebody expanded the source published here / forked the plugin and developed a feature like that?
If yes: Could you maybe paste a link / give hints / send a DM?

Just doesn't work at all

With local *.ics file got error:

Error in Plugin iCalEvents: could not read media file calendar.ics.

With link:

Error in Plugin iCalEvents: invalid iCalendar input.

iCalEvents and Bootstrap3 issue

Hello, and sorry for my english...

in the bootstrap3 template we have <accordion></accordion> container, which helps us to create a list of collapsed blocks.

This blocks are made from several objects named <panel></panel>
the panel container have several parameters like type, title, subtitle etc...

So the whole code, we use is looks like this:

<accordion>
   <panel type="default" title="Some main title" subtitle="some short description" icon="some glyphicon">
Some text
   </panel>
</accordion>

So, i'd like to make my events more compact using this feature and i made this template:

<accordion>
   <panel type="default" title="{date}" subtitle="{summary}" icon="some glyphicon">
{description}
   </panel>
</accordion>

And this doesn't work.

But! If i remove subtitle it works (but without summary data) and looks like this:
303e3934a57057b31afd1bc5ec3b6021.png

Not bad, but i need summary too...
Ok let's try to use {date} but in summary parameter
and my template for iCalEvents is:

<panel
type="info"
title="{date}"
subtitle="{date}"
icon="glyphicon glyphicon-calendar">
**{summary}**\\
{description}
</panel>

and it looks like this:
e87391dd353cc116c2d9b31811ddb4f5.png
Interesting, that it works...

Ok, let's try to use {summary} in title parameter... and it does not work.

So, i suppose that data generated in {summary} variable contains some tags or symbols, that conflict with bootstrap blocks.
Is it possible to fix it?

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.