Forum Discussion
max. Anzahl an Zeichen im Literaturverzeichnis für URL erweitern
In der beiliegenden Datei aus dem Ordner "Microsoft\Bibliography\Style" wird der Wert für die Länge eines URL festgelegt.
Kann man die Datei nicht umschreiben und somit die Länge der URL erhöhen?
My response to this needs to be prefaced with the fact that we are now getting into the coding of Microsoft Word. When it comes to working with xml, VBA, C languages, ect, I am very much a novice. Some of what I am about to say could be only partially correct.
I am reasonably sure that what you are trying to do cannot be done by editing xml. I apologize in advance if I am explaining something you already know by the way. Anyway, xml is a markup language, it is not a programming language. Looking through the xml style sheet you shared, for example, nothing in there is actually defining how long a string can be. What it appears to be doing is testing if a string is greater than zero, or if it is equal to zero. So, it's basically asking, "Does this field have text?"
The problem you are having is that the field itself only allows 255 characters. That is a problem in the source code of the software, not the xml style sheet of the document. I'm reasonably sure that the problem is being caused specifically by the type of string being allowed to be stored as input from the user of the bibliography source fields. That string type, in the source code itself, will only allow 255 characters.
I am not sure if this is something that could be fixed via VBA. But, even if it is, you are venturing far into impractical solutions now. Even if you found a macro that would change this for you, you'd need to change the file type to a macro-enabled one. This presents problems because, depending on where you plan to send this document, users you give the document to may have security setting that disable the macro. They may not even be allowed to open it at all.
Your best bet for a solution is to do what I suggested in an earlier reply. You could try to find a third-party bibliography plugin for Word. I am not sure if such things exist, but it wouldn't surprise me considering how frequently the problem of 255 character string limitations comes up when you search for it in relation to Word. Still, though, personally, I feel my above suggestion is your most practical way forward in this situation unless you can find a shortened URL that is approved by the site you are trying to cite.
- WackelkontaktMay 04, 2021Copper Contributor